Skip to content

Instantly share code, notes, and snippets.

@elentok
Created May 9, 2013 11:33
Show Gist options
  • Save elentok/5546958 to your computer and use it in GitHub Desktop.
Save elentok/5546958 to your computer and use it in GitHub Desktop.
Current script directory (works in bash and zsh)
SCRIPT_DIR=`dirname ${BASH_SOURCE[0]-$0}`
SCRIPT_DIR=`cd $SCRIPT_DIR && pwd`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment