Skip to content

Instantly share code, notes, and snippets.

@trans
Created February 18, 2013 15:38
Show Gist options
  • Save trans/4978282 to your computer and use it in GitHub Desktop.
Save trans/4978282 to your computer and use it in GitHub Desktop.
Add paths in ./bin to $PATH. Seemed like a neat idea --but not so much.
export ROOTPATH="$PATH"
function cd() {
builtin cd "$@"
for f in ./bin/*
do
export PATH="$f:$ROOTPATH"
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment