Karsten Hopp 82a60b
if [ -n "${BASH_VERSION-}" -o -n "${KSH_VERSION-}" -o -n "${ZSH_VERSION-}" ]; then
Karsten Hopp 82a60b
  [ "`/usr/bin/id -u 2>/dev/null || echo 0`" -le 200 ] && return
Karsten Hopp 82a60b
  # for bash and zsh, only if no alias is already set
Karsten Hopp 82a60b
  alias vi >/dev/null 2>&1 || alias vi=vim
Karsten Hopp 82a60b
fi