Skip to content

Instantly share code, notes, and snippets.

@mburr
Created June 2, 2014 20:11
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 mburr/4401de5cabcdee24aef8 to your computer and use it in GitHub Desktop.
Save mburr/4401de5cabcdee24aef8 to your computer and use it in GitHub Desktop.
mburr / bash addpath function
function addpath() {
if [[ ":$PATH:" != *":$1:"* ]]; then
PATH="${PATH:+"$PATH:"}$1"
export PATH
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment