Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Example
- ### Manually
- (edit ~/.bash_profile and append)
- ```
- # Setting PATH for something
- PATH="/new/dir/location/bin:${PATH}"
- export PATH
- ```
- ### Terminal
- ```echo "export PATH=/new/dir/location/bin:$PATH" >> ~/.bash_profile```
- ___
- ### Then reload the profile
- ```source ~/.bash_profile```
- **Note**
- This reloads your bash profile in the current tab or session.
- Either you enter this command on every tab or session, or restart Terminal.
Add Comment
Please, Sign In to add comment