Mercurial > ec-dotfiles
comparison rc/tcsh @ 248:fbb03c862b63
Awesome merge.
| author | Edho Arief <edho@myconan.net> |
|---|---|
| date | Tue, 08 Nov 2011 11:59:49 +0700 |
| parents | f74212d79fcb |
| children | 3a0bd37d37c0 |
comparison
equal
deleted
inserted
replaced
| 132:53b39ca5a6ea | 248:fbb03c862b63 |
|---|---|
| 1 #!/usr/bin/env tcsh | 1 #!/usr/bin/env tcsh |
| 2 [ -e "${HOME}/.ecos_tcsh.before" ] && source "${HOME}/.ecos_tcsh.before" | 2 |
| 3 # Ensures it's tcsh | |
| 4 if ( ! $?tcsh ) then | |
| 5 exit | |
| 6 endif | |
| 7 | |
| 8 # Ensures this script is running on terminal. Otherwise exit immediately. | |
| 9 if ( ! $?prompt ) then | |
| 10 exit | |
| 11 endif | |
| 12 | |
| 13 # Ensures we're not loading this script again. | |
| 14 if ( ! $?ecos_tcsh_loaded ) then | |
| 15 set ecos_tcsh_loaded="yes" | |
| 16 else | |
| 17 exit | |
| 18 endif | |
| 19 | |
| 20 test -f "${HOME}/.ecos_tcsh.before" && source "${HOME}/.ecos_tcsh.before" | |
| 3 umask 22 | 21 umask 22 |
| 4 limit coredumpsize 0 | 22 limit coredumpsize 0 |
| 5 | 23 |
| 6 set prompt="[%B%n@%m %~%b]%# " | 24 set prompt="[%B%n@%m %~%b]%# " |
| 7 set path=({,/usr}/{bin,sbin} "${HOME}"/{,.ecos_}bin) | 25 set path=({,/usr}/{bin,sbin} "${HOME}"/{,.ecos_}bin) |
| 76 set path=(${path} /usr/pkg/{bin,sbin}) | 94 set path=(${path} /usr/pkg/{bin,sbin}) |
| 77 breaksw | 95 breaksw |
| 78 case OpenBSD: | 96 case OpenBSD: |
| 79 set path=(${path} /usr/local/{bin,sbin}) | 97 set path=(${path} /usr/local/{bin,sbin}) |
| 80 setenv LSCOLORS ExGxFxdxCxegedabagExEx | 98 setenv LSCOLORS ExGxFxdxCxegedabagExEx |
| 81 [ "${iscolor}" -eq 1 ] && setenv TERM xterm-256color | 99 test "${iscolor}" -eq 1 && setenv TERM xterm-256color |
| 82 ( which colorls ) > /dev/null && alias ls colorls -FG | 100 ( which colorls ) > /dev/null && alias ls colorls -FG |
| 83 breaksw | 101 breaksw |
| 84 case DragonFly: | 102 case DragonFly: |
| 85 set path=(${path} /usr/pkg/{bin,sbin}) | 103 set path=(${path} /usr/pkg/{bin,sbin}) |
| 86 setenv LSCOLORS ExGxFxdxCxegedabagExEx | 104 setenv LSCOLORS ExGxFxdxCxegedabagExEx |
| 87 alias ls ls -FG | 105 alias ls ls -FG |
| 88 breaksw | 106 breaksw |
| 89 case SunOS: | 107 case SunOS: |
| 90 set path=(${path} /usr/{gnu,csw,xpg4}/{bin,sbin}) | 108 set path=(${path} /usr/{gnu,csw,xpg4}/{bin,sbin}) |
| 91 [ -x /usr/gnu/bin/ls ] && alias ls /usr/gnu/bin/ls ${gnuls_opts} | 109 test -x /usr/gnu/bin/ls && alias ls /usr/gnu/bin/ls ${gnuls_opts} |
| 92 breaksw | 110 breaksw |
| 93 case Linux: | 111 case Linux: |
| 94 alias ls ls ${gnuls_opts} | 112 alias ls ls ${gnuls_opts} |
| 95 alias grep grep --color=auto | 113 alias grep grep --color=auto |
| 96 breaksw | 114 breaksw |
| 97 endsw | 115 endsw |
| 98 unset gnuls_opts | 116 unset gnuls_opts |
| 99 | 117 |
| 100 ( which vim ) > /dev/null && alias vi vim && setenv EDITOR vim | 118 ( which vim ) > /dev/null && alias vi vim && setenv EDITOR vim |
| 101 | 119 |
| 102 [ -e "${HOME}/.ecos_tcsh.after" ] && source "${HOME}/.ecos_tcsh.after" | 120 test -f "${HOME}/.ecos_tcsh.after" && source "${HOME}/.ecos_tcsh.after" |
| 103 | 121 |
| 104 [ -x "/usr/games/fortune" ] && "/usr/games/fortune" | 122 test -x "/usr/games/fortune" && "/usr/games/fortune" |
