| 0 | 1 #!/usr/bin/env tcsh | 
|  | 2 umask 22 | 
|  | 3 limit coredumpsize 0 | 
|  | 4 | 
|  | 5 set prompt="[%B%n@%m %~%b]%# " | 
| 17 | 6 set path=({,/usr}/{bin,sbin} "${HOME}"/{,.ecos.}bin) | 
| 0 | 7 set history=1000 | 
|  | 8 set savehist=1000 | 
|  | 9 set nobeep | 
|  | 10 set filec | 
|  | 11 | 
|  | 12 setenv EDITOR vi | 
|  | 13 setenv PAGER less | 
|  | 14 setenv BLOCKSIZE K | 
|  | 15 setenv LC_COLLATE C | 
|  | 16 setenv LANG en_US.UTF-8 | 
|  | 17 | 
|  | 18 unset autologout | 
|  | 19 unset autoexpand | 
|  | 20 unset autolist | 
|  | 21 unset ignoreeof | 
|  | 22 | 
|  | 23 unalias \* | 
|  | 24 alias h history 25 | 
|  | 25 alias j jobs -l | 
|  | 26 alias la ls -A | 
|  | 27 alias ll ls -lA | 
|  | 28 alias ls ls -F | 
|  | 29 | 
|  | 30 if ($?prompt) then | 
|  | 31   set gnuls_opts="--color=auto --group-directories-first -F" | 
|  | 32   set iscolor=0 | 
|  | 33   switch (${TERM}) | 
|  | 34     case xterm*: | 
|  | 35     case dtterm: | 
|  | 36     case screen*: | 
|  | 37       setenv CLICOLOR | 
|  | 38       set myhost=`hostname | cut -d '.' -f 1` | 
|  | 39       set prompt="[%{\033[0;33m%}%n%{\033[0m%}@%{\033[0;32m%}%m%{\033[0m%} %{\033[1;34m%}%c%{\033[0m%}]%# " | 
|  | 40       alias mypwd 'printf "%s\n" "${PWD}" | sed -e "s#^${HOME}#~#"' | 
|  | 41       alias precmd 'printf "\033]0;${USER}@${myhost}: %s\007" "`mypwd`"' | 
|  | 42       set iscolor=1 | 
|  | 43     breaksw | 
|  | 44   endsw | 
|  | 45 | 
|  | 46   if ("$TERM" == "screen") then | 
|  | 47     bindkey '\e[1~' beginning-of-line | 
|  | 48     bindkey '\e[3~' delete-char | 
|  | 49     bindkey '\e[4~' end-of-line | 
|  | 50     bindkey '\e[5~' history-search-backward | 
|  | 51     bindkey '\e[6~' history-search-forward | 
|  | 52     bindkey '\eOD' backward-word | 
|  | 53     bindkey '\eOC' forward-word | 
|  | 54     bindkey '\e\e[D' backward-word | 
|  | 55     bindkey '\e\e[C' forward-word | 
|  | 56   endif | 
|  | 57   bindkey "^W" backward-delete-word | 
|  | 58   bindkey -k up history-search-backward | 
|  | 59   bindkey -k down history-search-forward | 
|  | 60 endif | 
|  | 61 | 
|  | 62 switch (`uname -s`) | 
|  | 63   case FreeBSD: | 
|  | 64     set path=(${path} /usr/local/{bin,sbin}) | 
|  | 65     setenv LSCOLORS ExGxFxdxCxegedabagExEx | 
|  | 66     alias ls ls -FG | 
|  | 67     ( which gnuls ) > /dev/null && alias ls gnuls ${gnuls_opts} | 
|  | 68     alias man man -o | 
|  | 69   breaksw | 
|  | 70   case NetBSD: | 
|  | 71     set path=(${path} /usr/pkg/{bin,sbin}) | 
|  | 72     breaksw | 
|  | 73     case OpenBSD: | 
|  | 74     set path=(${path} /usr/local/{bin,sbin}) | 
|  | 75     [ "${iscolor}" -eq 1 ] && setenv TERM xterm-256color | 
|  | 76   breaksw | 
|  | 77   case DragonFly: | 
|  | 78     set path=(${path} /usr/pkg/{bin,sbin}) | 
|  | 79     setenv LSCOLORS ExGxFxdxCxegedabagExEx | 
|  | 80     alias ls ls -FG | 
|  | 81   breaksw | 
|  | 82   case SunOS: | 
|  | 83     set path=(${path} /usr/{gnu,csw,xpg4}/{bin,sbin}) | 
|  | 84     [ -x /usr/gnu/bin/ls ] && alias ls /usr/gnu/bin/ls ${gnuls_opts} | 
|  | 85   breaksw | 
|  | 86   case Linux: | 
|  | 87     alias ls ls ${gnuls_opts} | 
|  | 88     alias grep grep --color=auto | 
|  | 89   breaksw | 
|  | 90 endsw | 
|  | 91 unset gnuls_opts | 
|  | 92 | 
|  | 93 ( which vim ) > /dev/null && alias vi vim | 
|  | 94 | 
|  | 95 [ -e "${HOME}/.tcsh_exec" ] && source "${HOME}/.tcsh_exec" |