Mercurial > ec-dotfiles
diff 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 |
line wrap: on
line diff
--- a/rc/tcsh Thu Nov 03 15:55:44 2011 +0700 +++ b/rc/tcsh Mon Nov 07 12:26:10 2011 +0700 @@ -12,7 +12,7 @@ exit endif -[ -e "${HOME}/.ecos_tcsh.before" ] && source "${HOME}/.ecos_tcsh.before" +test -f "${HOME}/.ecos_tcsh.before" && source "${HOME}/.ecos_tcsh.before" umask 22 limit coredumpsize 0 @@ -91,7 +91,7 @@ case OpenBSD: set path=(${path} /usr/local/{bin,sbin}) setenv LSCOLORS ExGxFxdxCxegedabagExEx - [ "${iscolor}" -eq 1 ] && setenv TERM xterm-256color + test "${iscolor}" -eq 1 && setenv TERM xterm-256color ( which colorls ) > /dev/null && alias ls colorls -FG breaksw case DragonFly: @@ -101,7 +101,7 @@ breaksw case SunOS: set path=(${path} /usr/{gnu,csw,xpg4}/{bin,sbin}) - [ -x /usr/gnu/bin/ls ] && alias ls /usr/gnu/bin/ls ${gnuls_opts} + test -x /usr/gnu/bin/ls && alias ls /usr/gnu/bin/ls ${gnuls_opts} breaksw case Linux: alias ls ls ${gnuls_opts} @@ -112,6 +112,6 @@ ( which vim ) > /dev/null && alias vi vim && setenv EDITOR vim -[ -e "${HOME}/.ecos_tcsh.after" ] && source "${HOME}/.ecos_tcsh.after" +test -f "${HOME}/.ecos_tcsh.after" && source "${HOME}/.ecos_tcsh.after" -[ -x "/usr/games/fortune" ] && "/usr/games/fortune" +test -x "/usr/games/fortune" && "/usr/games/fortune"