Posted By

berkes on 03/11/10


Tagged

Bash linux bashrc bin executable


Versions (?)

If a 'bin' exists in the user home, then add that to the PATH.


 / Published in: PHP
 

URL: http://webschuur.com

Put this line in your .bashrc. If the user has a directory named 'bin' then that will be added to the PATH. All scripts in that path (wich are executable) will be available as commands to that user.

  1. # enable bin diretory in PATH when found
  2. if [ -a ~/bin ]; then
  3. PATH=$PATH:~/bin
  4. fi

Report this snippet  

You need to login to post a comment.