Skip to content

Instantly share code, notes, and snippets.

@jim80net
Created February 27, 2014 16:31
Show Gist options
  • Save jim80net/9253601 to your computer and use it in GitHub Desktop.
Save jim80net/9253601 to your computer and use it in GitHub Desktop.
BINDIR for bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
from: http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment