-
-
Save WritingPanda/65f509f7ccd51849020ace69b9b4c67d 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 [python:$(pyenv version-name)]' | |
# Show the version name in light green on previous line | |
export PROMPT_COMMAND='echo -e "\033[1;32m[python:$(pyenv version-name)]\033[0m"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment