Guest User

Untitled

a guest
Apr 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. ## Example
  2.  
  3. ### Manually
  4. (edit ~/.bash_profile and append)
  5.  
  6. ```
  7. # Setting PATH for something
  8. PATH="/new/dir/location/bin:${PATH}"
  9. export PATH
  10. ```
  11.  
  12. ### Terminal
  13.  
  14. ```echo "export PATH=/new/dir/location/bin:$PATH" >> ~/.bash_profile```
  15.  
  16. ___
  17.  
  18. ### Then reload the profile
  19. ```source ~/.bash_profile```
  20.  
  21.  
  22. **Note**
  23.  
  24. This reloads your bash profile in the current tab or session.
  25. Either you enter this command on every tab or session, or restart Terminal.
Add Comment
Please, Sign In to add comment