Skip to content

Instantly share code, notes, and snippets.

View WritingPanda's full-sized avatar
🐼
Just a panda

Leonardo Quimbaya WritingPanda

🐼
Just a panda
  • GitHub Staff
  • San Antonio, TX
  • 01:10 (UTC -05:00)
  • LinkedIn in/leoquimbaya
View GitHub Profile
@WritingPanda
WritingPanda / bash-prompt-command-python-version.sh
Last active January 2, 2020 21:31 — forked from dmendiza/gist:6709874
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"'