Created
July 13, 2014 00:59
-
-
Save dgalling/06fb215bba8fea520083 to your computer and use it in GitHub Desktop.
Why doesn't OS X have this?
This file contains hidden or 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
#!/usr/bin/env zsh | |
# | |
FILEPATH="$1" | |
echo $(cd "$(dirname "$FILEPATH")"; pwd)/$(basename $FILEPATH) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment