Created
September 26, 2013 04:30
-
-
Save dmendiza/6709874 to your computer and use it in GitHub Desktop.
Show the active python version in pyenv before every prompt
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
# Show the version inline | |
export PROMPT_COMMAND='echo -n [py:$(pyenv version-name)]' | |
# Show the version name in light blue on previous line | |
export PROMPT_COMMAND='echo -e "\033[0;36m[py:$(pyenv version-name)]\033[0m"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment