Editing /etc/profile, some doubts

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

 



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

I don't know much of shell scripting and i think i need to understand
better what i'll be doing here. The piece of code above just doesn't
seem to be where i need to insert my new folder , unh...?
Well, if anyone could help me here? 
Maybe it's not even the best way to add folders to your path...?

-- 
Leandro


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux