Skip to content

Instantly share code, notes, and snippets.

@nardsqq
Last active March 16, 2019 07:51
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 nardsqq/ae30233bef41b2e327792bd1f2e833bc to your computer and use it in GitHub Desktop.
Save nardsqq/ae30233bef41b2e327792bd1f2e833bc to your computer and use it in GitHub Desktop.
Add $PATH of environment to Git Bash Manually

Add $PATH of environment to Git Bash Manually

  1. Open the bash window and you by default you're in the root directory
$pwd
  1. Change to user directory
$ cd ~
$ pwd
/c/Users/User-Nards
  1. Create a .bash_profile file or append to an existing one (use single quotes or $PATH will get interpolated)
$ echo 'PATH=$PATH:/c/{directory}' >> .bash_profile
  1. Check if the file has the entry
$ cat .bash_profile
  1. Source the bash window to refresh profile or configurations
$ source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment