Skip to content

Instantly share code, notes, and snippets.

@maxdeliso
Last active January 2, 2016 08:29
Show Gist options
  • Save maxdeliso/8276577 to your computer and use it in GitHub Desktop.
Save maxdeliso/8276577 to your computer and use it in GitHub Desktop.
bashrc snippet
LOCAL_BINDIR="$HOME/local/bin"
# if local bin directory exists and is not in the path already, add it
if [[ -d "$LOCAL_BINDIR" ]] && [[ ! ($PATH =~ "$LOCAL_BINDIR") ]]; then
export PATH=$LOCAL_BINDIR:$PATH
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment