Skip to content

Instantly share code, notes, and snippets.

@brettbuddin
Created December 31, 2011 17:19
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 brettbuddin/1544619 to your computer and use it in GitHub Desktop.
Save brettbuddin/1544619 to your computer and use it in GitHub Desktop.
Grabs the current file's directory
DIRECTORY=$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment