# $Id$
-grep -V | grep GNU &>/dev/null && alias grep='grep --color=auto'
+grep -V 2>/dev/null | grep GNU >/dev/null && alias grep='grep --color=auto'
alias knh='kill_known_host'
alias l='ls'
alias ls='/bin/ls $LS_OPTIONS'
-if which vim &>/dev/null; then
+if which vim 2>/dev/null | grep ^/ >/dev/null; then
alias vim='vim +syn\ on'
alias vi='vim'
fi
export TERM=linux
unset LANG
export LC_CTYPE=en_GB
-if ls --help 2>/dev/null | grep -qs gnu.org; then
+if ls --help 2>/dev/null | grep gnu.org >/dev/null; then
export LS_OPTIONS="--color=auto -F -b --time-style=long-iso"
elif [ "$SYSTEM" = "Darwin" ]; then
export LS_OPTIONS="-G -F -b"