How to add a directory to PATH?
I carefully followed instructions on how to add a directory to PATH, but it's not working.
I export PATH from .bash_profile in my home directory, but when I rebooted, nothing was added to PATH. Code:
~$ pwd Code:
~$ export PATH=$PATH:/home/wolf/.gem/ruby/1.8/bin I am running Ubuntu 10.4 Thank you |
Hi,
try adding it in your .bashrc instead of .bash_profile. Do not forget to source it afterwards. |
Thanks crts, that worked!
|
All times are GMT -5. The time now is 01:41 AM. |