Created
March 11, 2014 04:00
-
-
Save michaelaye/9479299 to your computer and use it in GitHub Desktop.
print pretty path in a shell
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
#!/usr/bin/env python | |
import os | |
import pprint | |
path = os.environ['PATH'] | |
path = path.split(':') | |
pprint.pprint(path) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put this into a file called printpath (or whatever you like), put it into $HOME/bin , add $HOME/bin to your PATH, then you can always call printpath to see your current path, looking like this: