How to add something to PATH ? I have added like
PATH=$PATH:/home/example
export PATH
and it works until I restart , after that when I type env in PATH there is no /home/example.
feedback
|
|
set it in your Its just a set of commands that run each time a new bash instance is started. That's always been my hacky way of doing it. It works, so i never sought anything better.
| |||||
|
feedback
|
|
Add these lines to your | |||
|
feedback
|
|
put it e.g. into .*rc in your home directory so that it runs whenever you run your favourite shell. examples: ~/.bashrc ~/.bash_profile for bash ~/.tcshrc for tcsh etc etc... ~/.profile usually get loaded every time.... | |||
|
feedback
|