Editing /etc/profile, some doubts
Robert P. J. Day
rpjday at mindspring.com
Sat Jan 29 13:38:45 UTC 2005
On Sat, 29 Jan 2005, Leandro Melo wrote:
> Hi, I want to add a folder to my PATH enviroment variable, then i
> tought i could edit /etc/profile. However, Fedora's /etc/profile file
> seems a little diferent from what i expected.
> In fact, i don't know excatly where i should change it to add this new folder.
> I could see this line in /etc/profile
>
> if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
> if [ "$2" = "after" ] ; then
> PATH=$PATH:$1
> else
> PATH=$1:$PATH
> fi
> fi
don't mess with /etc/profile. note, instead, that /etc/profile, as
part of its startup, will descend into /etc/profile.d and invoke every
script in there with the suffix ".sh". just add a new script to that
directory for each new "feature" you want to customize during the
login process.
rday
More information about the fedora-list
mailing list