Last active
November 29, 2020 22:36
-
-
Save lambdan/7ba3f25880f6cf870e7a71f0712d78b1 to your computer and use it in GitHub Desktop.
zsh function to get absolute path to any file/folder using python3
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
# 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