mirror of
https://github.com/void-linux/void-packages.git
synced 2025-10-03 00:55:10 +02:00
6 lines
238 B
Bash
6 lines
238 B
Bash
if [ -n "$BASH_VERSION" -o -n "$KSH_VERSION" -o -n "$ZSH_VERSION" ]; then
|
|
[ -x /bin/id ] || return
|
|
[ `/bin/id -u` -le 100 ] && return
|
|
# for bash and zsh, only if no alias is already set
|
|
alias vi >/dev/null 2>&1 || alias vi=vim
|
|
fi
|