1## Some part are based on Justin Randall's .tcshrc (jrandall AT gmail DOT com) 2## and Joe Holden's (joe@joeholden.co.uk) .cshrc 3## 4 5setenv LANG zh_TW.UTF-8 6#setenv LC_CTYPE en_US.ISO8859-1 7setenv MM_CHARSET utf8 8 9alias ls "/bin/ls -G" 10setenv LSCOLORS "Exfxcxdxbxegedabagacad" 11 12# Uncomment the followings if you wish to have a more useful prompt 13if ($?prompt) then 14 set color 15 set filec 16 set prompt = "%{[1;33m%}%n@%m%{[m%}%{[33m%} <%{[32m%}%/%{[33m%}>%{[m%} " 17 18 # if user is root, make the username bold and red 19 if (`whoami` == "root") then 20 set prompt = "%{%B[1;33;41m%}%n@%m%{[m%}%{[33m%}%b <%{[32m%}%/%{[33m%}>%{[m%}# " 21 endif 22endif 23 24# for 8 bit character 25stty cs8 -istrip 26stty pass8 27 28setenv XMODIFIERS "@im=xcin" 29set dspmbyte="0000000000000000000000000000000000000000000000000000000000000000222222222222222222222222222222222222222222222222222222222222222223333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333330" 30 31# set WWW_HOME as FreeBSD Homepage for lynx 32setenv WWW_HOME http://www.freebsd.org/ 33 34# set default_dir of GtkFileChooser as $HOME 35setenv GTK_DEFAULT_FILECHOOSER_DIR $HOME 36 37# no coredump 38#limit coredumpsize 0 k 39 40# 41# Use a Chinese capable pager and editor 42#setenv PAGER "/usr/bin/less -r" 43#setenv EDITOR "env LC_CTYPE=en_US.ISO8859-1 /usr/bin/vi" 44#setenv VISUAL "env LC_CTYPE=en_US.ISO8859-1 /usr/bin/vi" 45#alias vi 'env LC_CTYPE=en_US.ISO8859-1 vi' 46 47# For DocBook: 48#setenv SGML_CATALOG_FILES /usr/local/share/sgml/catalog 49#setenv XML_CATALOG_FILES /usr/local/share/xml/catalog.ports 50 51# turn on autocorrect, autolist, etc.. 52 53set autocorrect 54set correct = all 55set autolist 56set autospell 57set autoexpand 58set matchbeep = ambiguous 59set history = 1000 60set savehist = 1000 61#set notify 62 63# will be notified when someone logs in or out of your system. 64set watch = (0 any any) 65 66# trun on Home End key 67bindkey [1~ beginning-of-line 68bindkey [4~ end-of-line 69 70# DEL: 71bindkey ^[[3~ delete-char 72 73# HOME : go to the beginning of the line. 74# already bound to beginnning-of-line, but the keycode thing was different. 75bindkey ^[[H beginning-of-line 76 77# END : go to the end of the line. 78# same as above. 79bindkey ^[[F end-of-line 80 81# PAGE UP : search in history backwards for line beginning as current. 82bindkey ^[[I history-search-backward 83bindkey ^[[5~ history-search-backward # for x 84 85# PAGE DOWN : search in history forwards for line beginning as current. 86bindkey ^[[G history-search-forward 87bindkey ^[[6~ history-search-forward # for x 88 89 90# 91# Temporary hack to allow display of Chinese 92#alias cls 'env LC_CTYPE=en_US.ISO8859-1 ls -GF' 93#alias ctin 'env LC_CTYPE=en_US.ISO8859-1 tin' 94#alias cjoe 'joe -asis' 95#alias cwrite 'env LC_CTYPE=en_US.ISO8859-1 write' 96#alias ctalk 'env LC_CTYPE=en_US.ISO8859-1 talk' 97#alias cwall 'env LC_CTYPE=en_US.ISO8859-1 wall' 98#alias cvi 'env LC_CTYPE=en_US.ISO8859-1 vi' 99#alias cncftp3 'env LC_CTYPE=en_US.ISO8859-1 ncftp3' 100#alias cgnuls 'gnuls --color=auto --show-control-chars' 101#alias cless 'less -r' 102#alias cqkmj 'env TERM=vt100 qkmj' 103 104# color ls (/usr/ports/misc/gnuls) 105#alias ls 'gnuls --color=auto --show-control-chars' 106 107# 108# Taiwan News Server 109#setenv NNTPSERVER news.tw.freebsd.org 110 111# 112# Taiwan IRC Server, /join #bsdchat 113#alias irssi 'env TERM=xterm irssi -c irc.freenode.net' 114 115setenv SGML_CATALOG_FILES /usr/local/share/sgml/catalog 116setenv XML_CATALOG_FILES /usr/local/share/xml/catalog.ports 117 118# For send-pr 119#setenv MAIL_AGENT "/usr/local/sbin/ssmtp -v -t" 120setenv ORGANIZATION "FreeBSD Taiwan" 121