source $HOME/.tcshrc.complete alias ml 'telnet localhost 4000' alias today "date '+%d%h%y'" alias mess 'clear ; tail -f /var/log/messages' alias pppmess 'clear ; sudo tail -f /var/log/ppp.log' if ( -e `where vim`) then alias vi 'vim' endif alias x 'exit' alias ff 'find . -name $*' alias . 'pwd' alias .. 'cd ..' alias - 'cd -' alias / 'cd /' alias ls '/bin/ls -Gw' alias ll '/bin/ls -Gl' alias restart 'clear ; exec tcsh' alias maek 'make' alias helpcommand man set prompt='[%B%m%b] %B%~%b%# ' set prompt2="%R?" set prompt3="CORRECT> %B%R%b (y|n|e)?" set nobeep set history=2048 set inputmode=insert set filec set autolist set autocorrect set autoexpand set symlinks=chase set listjobs set rmstar set fignore=(.o) setenv BROWSER 'firefox' setenv JAVA_HOME /usr/local/jdk1.4.2 setenv XMODIFIERS '@im=SCIM' setenv GTK_IM_MODULE scim setenv G_BROKEN_FILENAMES 1 setenv GDK_USE_XFT 1 [ -x /etc/lang.csh ] && source /etc/lang.csh if ( $LANG == "zh_CN.eucCN" ) then set KON_PRE='/usr/local/bin/kon -Coding GBK-0 -e' alias cxterm 'CXterm -fh hanzigb16fs -fn 8x16' [ -r /root/.muttrc.gb2312 ] && ln -sf /root/.muttrc.gb2312 /root/.muttrc else if ( $LANG == "zh_TW.Big5" ) then set KON_PRE='/usr/local/bin/kon -Coding BIG5-0 -e' alias cxterm 'CXterm -Big5' [ -r /root/.muttrc.big5 ] && ln -sf /root/.muttrc.big5 /root/.muttrc else set KON_PRE=' ' endif endif if ( ! -r /root/.relaxconf ) then ${KON_PRE} /usr/local/bin/relaxconf endif set XORG_ON=`ps ac | grep Xorg` if ( "$XORG_ON" != "" ) then exit endif if ( -r /root/.langreset ) then source /etc/lang.csh endif if ( ! $?DISPLAY ) then set TTY_TYPE=`echo $tty | cut -c 4` if ( $TTY_TYPE == "v" && -r /root/.xinitrc ) then if ( `cat /etc/X11/xorg.conf | egrep "psm|ums|mse"` != "" && -r /var/run/moused.pid ) then set MOUSEPID=`cat /var/run/moused.pid` if ( `ps -p $MOUSEPID | grep "moused"` != "" ) then kill -INT $MOUSEPID endif endif [ -x /usr/X11R6/bin/startx ] && startx endif endif