Skip to content

Instantly share code, notes, and snippets.

@WritingPanda
Forked from dmendiza/gist:6709874
Last active January 2, 2020 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WritingPanda/65f509f7ccd51849020ace69b9b4c67d to your computer and use it in GitHub Desktop.
Save WritingPanda/65f509f7ccd51849020ace69b9b4c67d to your computer and use it in GitHub Desktop.
Show the active python version in pyenv before every prompt
# 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