Skip to content

Instantly share code, notes, and snippets.

@dmendiza
Created September 26, 2013 04:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dmendiza/6709874 to your computer and use it in GitHub Desktop.
Save dmendiza/6709874 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 [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