Skip to content

Instantly share code, notes, and snippets.

@larrymyers
Created September 15, 2011 23:14
Show Gist options
  • Save larrymyers/1220765 to your computer and use it in GitHub Desktop.
Save larrymyers/1220765 to your computer and use it in GitHub Desktop.
Get the absolute current directory of the running bash script.
"$( cd "$( dirname "$0")" && pwd )"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment