Skip to content

Instantly share code, notes, and snippets.

@hoangddt
Created April 26, 2016 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoangddt/0c92ba60ec8df2336e93513282153c31 to your computer and use it in GitHub Desktop.
Save hoangddt/0c92ba60ec8df2336e93513282153c31 to your computer and use it in GitHub Desktop.
Add folder to Path on linux (Ubuntu 14.04)
# Edit .bashrc in your home directory and add the following line:
export PATH="/path/to/dir:$PATH"
# You will need to source your .bashrc or logout/login (or restart the terminal) for the changes to take effect.
# To source your .bashrc, simply type
source .bashrc
# when in the home directory.
# Note: change `~/.zshrc` file instead if use zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment