Skip to content

Instantly share code, notes, and snippets.

@lambdan
Last active November 29, 2020 22:36
Show Gist options
  • Save lambdan/7ba3f25880f6cf870e7a71f0712d78b1 to your computer and use it in GitHub Desktop.
Save lambdan/7ba3f25880f6cf870e7a71f0712d78b1 to your computer and use it in GitHub Desktop.
zsh function to get absolute path to any file/folder using python3
# add this to to your .zshrc, then you can do `path file` to get the full path to that file, requires python
path() { python -c "import os;print(os.path.realpath(\""$1\""))" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment