Skip to content

Instantly share code, notes, and snippets.

@dgalling
Created July 13, 2014 00:59
Show Gist options
  • Save dgalling/06fb215bba8fea520083 to your computer and use it in GitHub Desktop.
Save dgalling/06fb215bba8fea520083 to your computer and use it in GitHub Desktop.
Why doesn't OS X have this?
#!/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