[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash und ~/.bashrc



Rainer Bendig aka Ny schrieb am Donnerstag, 10. Februar 2005 06:30:
> Trotzdem wird die Datei
> -rw-r--r--  1 ny ny 1798 2005-01-08 17:59 .bashrc
> ignoriert.
> gebe ich nun in der Shell einfach "bash" ein als ny, so wird sie
> abgearbeitet. Anweisungen in der /etc/bash/bash.bashrc werden
> ebenfalls ignoriert.

~/.bashrc und /etc/bash.bashrc sind konfigurations-files für interactive
(non-login) shells.

Für Login-Shells wird ~/.bash_profile und /etc/profile verwendet. Sollen die
anderen Files auch bearbeitet werden, kannst Du sie mit einbinden, indem Du
so etwas einträgst:

# include .bashrc if it exists

if [ -f ~/.bashrc ]; then
    source ~/.bashrc
fi

Gruß Chris
-- 
This message was ROT-13 encrypted twice for extra security.



Reply to: