vim alias nicht für root

Guido Leisker lists.gl at guido-leisker.de
Wed Nov 30 15:50:49 UTC 2005



Rainer Traut wrote:
> Hi,
> 
> Guido Leisker wrote:
> 
>> hm...
>> funktionieren tuts bei mir trotzdem, auch wenn das bei mir genauso 
>> aussieht.
>> Kann jetzt auf die Schnelle aber auch keine andere Stelle finden, wo 
>> das gesetzt wird.
>>
>> Rainer Traut wrote:
>>
>>> 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.
> 
> 
> Sicher, dass es bei Dir als root funktioniert?
> Bei mir klappts als normaler user, als root hab ich keinen alias
> gesetzt. Habs nochmal gecheckt.
> 
> Thx
> Rainer
> 
> 
> -- 
> Fedora-de-list mailing list
> Fedora-de-list at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-de-list

Ganz sicher, hab zwei FC4 System hier stehen, eins davon erst letzte 
woche aufgesetzt. Bei Beiden ging das sofort.
(Eins als Workstation installiert, und eins als Server)




More information about the Fedora-de-list mailing list