2009-03-27 11:34:11 +00:00
|
|
|
if [ -n "$BASH_VERSION" -o -n "$KSH_VERSION" -o -n "$ZSH_VERSION" ]; then
|
2009-10-05 16:34:39 +00:00
|
|
|
[ -x /bin/id ] || return
|
|
|
|
[ `/bin/id -u` -le 100 ] && return
|
2009-03-27 11:34:11 +00:00
|
|
|
# for bash and zsh, only if no alias is already set
|
|
|
|
alias vi >/dev/null 2>&1 || alias vi=vim
|
|
|
|
fi
|