Skip to content

Instantly share code, notes, and snippets.

@smosher
Created April 18, 2012 21:03
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 smosher/2416530 to your computer and use it in GitHub Desktop.
Save smosher/2416530 to your computer and use it in GitHub Desktop.
bash: exports PATH with operand appended
pushpath () { export PATH=${PATH}:${1}; }
# example: $ pushpath ~/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment