Skip to content

Instantly share code, notes, and snippets.

@tylergaw
Created August 9, 2014 18:52
Show Gist options
  • Select an option

  • Save tylergaw/daf512585659228d2bd0 to your computer and use it in GitHub Desktop.

Select an option

Save tylergaw/daf512585659228d2bd0 to your computer and use it in GitHub Desktop.
Common places to make PATH additions
# A list of potential files where users or scripts/apps/whatevs might add to the PATH
~/.bash_profile
~/.bashrc
~/.profile
~/.bash_custom
@tylergaw
Copy link
Copy Markdown
Author

tylergaw commented Aug 9, 2014

Are there other common or not-so-common files where PATH might be modified?

@tylergaw
Copy link
Copy Markdown
Author

tylergaw commented Aug 9, 2014

Also, in my bash script I'm planning to source each of these in order until a program I'm looking for is found. In this case I'm trying to determine if and where node is installed.

@tylergaw
Copy link
Copy Markdown
Author

tylergaw commented Aug 9, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment