- To set the PATH variable for all the users, edit /etc/paths or add new file to /etc/paths.d
Note: to prepend to the paths, you have to edit /etc/paths because it is loaded first then the entries in /etc/paths.d - To set the PATH variable for a user, edit $HOME/.bash_profile and enter the line,e.g.:
export PATH=$PATH:/usr/local/git/bin
Note: to make sure some commands override others, you may need to prepend it:export PATH=/usr/local/git/bin:$PATH
No comments:
Post a Comment