Created
February 4, 2013 18:49
-
-
Save asmedrano/4708675 to your computer and use it in GitHub Desktop.
Get the location of the bash script you are running. Great for making alias..ssss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SCRIPTPATH=$(cd "$(dirname "$0")"; pwd) | |
echo SCRIPTPATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment