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

Re: How to add dir to path



On 08/07/2007 10:32 AM, Manon Metten wrote:
Hi,

I want to add the dir ~/scripts to my path, what command do I use for that?

M> echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/games

But how do I add ~/scripts to that path?

Thanks, Manon.


I believe the correct way to do this is to set the path in ~/.bashrc. Set it like so:

PATH=/usr/local/bin:/usr/bin:/bin:/usr/games:$HOME/scripts

I've tried some of the other ways discussed in the thread, and they didn't work. I hope this helps.



Reply to: