comparison rc/tcsh @ 244:b6b9a47de016

Turns out solaris doesn't have [
author Edho Arief <edho@myconan.net>
date Mon, 07 Nov 2011 12:26:10 +0700
parents 3167e31f8f01
children f74212d79fcb
comparison
equal deleted inserted replaced
243:3167e31f8f01 244:b6b9a47de016
10 set ecos_tcsh_loaded="yes" 10 set ecos_tcsh_loaded="yes"
11 else 11 else
12 exit 12 exit
13 endif 13 endif
14 14
15 [ -e "${HOME}/.ecos_tcsh.before" ] && source "${HOME}/.ecos_tcsh.before" 15 test -f "${HOME}/.ecos_tcsh.before" && source "${HOME}/.ecos_tcsh.before"
16 umask 22 16 umask 22
17 limit coredumpsize 0 17 limit coredumpsize 0
18 18
19 set prompt="[%B%n@%m %~%b]%# " 19 set prompt="[%B%n@%m %~%b]%# "
20 set path=({,/usr}/{bin,sbin} "${HOME}"/{,.ecos_}bin) 20 set path=({,/usr}/{bin,sbin} "${HOME}"/{,.ecos_}bin)
89 set path=(${path} /usr/pkg/{bin,sbin}) 89 set path=(${path} /usr/pkg/{bin,sbin})
90 breaksw 90 breaksw
91 case OpenBSD: 91 case OpenBSD:
92 set path=(${path} /usr/local/{bin,sbin}) 92 set path=(${path} /usr/local/{bin,sbin})
93 setenv LSCOLORS ExGxFxdxCxegedabagExEx 93 setenv LSCOLORS ExGxFxdxCxegedabagExEx
94 [ "${iscolor}" -eq 1 ] && setenv TERM xterm-256color 94 test "${iscolor}" -eq 1 && setenv TERM xterm-256color
95 ( which colorls ) > /dev/null && alias ls colorls -FG 95 ( which colorls ) > /dev/null && alias ls colorls -FG
96 breaksw 96 breaksw
97 case DragonFly: 97 case DragonFly:
98 set path=(${path} /usr/pkg/{bin,sbin}) 98 set path=(${path} /usr/pkg/{bin,sbin})
99 setenv LSCOLORS ExGxFxdxCxegedabagExEx 99 setenv LSCOLORS ExGxFxdxCxegedabagExEx
100 alias ls ls -FG 100 alias ls ls -FG
101 breaksw 101 breaksw
102 case SunOS: 102 case SunOS:
103 set path=(${path} /usr/{gnu,csw,xpg4}/{bin,sbin}) 103 set path=(${path} /usr/{gnu,csw,xpg4}/{bin,sbin})
104 [ -x /usr/gnu/bin/ls ] && alias ls /usr/gnu/bin/ls ${gnuls_opts} 104 test -x /usr/gnu/bin/ls && alias ls /usr/gnu/bin/ls ${gnuls_opts}
105 breaksw 105 breaksw
106 case Linux: 106 case Linux:
107 alias ls ls ${gnuls_opts} 107 alias ls ls ${gnuls_opts}
108 alias grep grep --color=auto 108 alias grep grep --color=auto
109 breaksw 109 breaksw
110 endsw 110 endsw
111 unset gnuls_opts 111 unset gnuls_opts
112 112
113 ( which vim ) > /dev/null && alias vi vim && setenv EDITOR vim 113 ( which vim ) > /dev/null && alias vi vim && setenv EDITOR vim
114 114
115 [ -e "${HOME}/.ecos_tcsh.after" ] && source "${HOME}/.ecos_tcsh.after" 115 test -f "${HOME}/.ecos_tcsh.after" && source "${HOME}/.ecos_tcsh.after"
116 116
117 [ -x "/usr/games/fortune" ] && "/usr/games/fortune" 117 test -x "/usr/games/fortune" && "/usr/games/fortune"