vim alias nicht für root

Rainer Traut tr.ml at gmx.de
Wed Nov 30 09:12:09 UTC 2005


Hallo,

weiss evtl. jemand, warum der vi/vim alias für root abgestellt wurde?

Die Datei /etc/profile.d/vim.sh
hat jetzt folgenden Inhalt:

if [ -n "$BASH_VERSION" -o -n "$KSH_VERSION" -o -n "$ZSH_VERSION" ]; then
   [ -x /usr/bin/id ] || return
   [ `/usr/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

sodass der Alias für root nicht mehr gesetzt wird.

Thx
Rainer




More information about the Fedora-de-list mailing list