Skip to content

Instantly share code, notes, and snippets.

@medwig
Created November 24, 2018 15:02
Show Gist options
  • Save medwig/4ab63c2eff0ac811619057967f87c837 to your computer and use it in GitHub Desktop.
Save medwig/4ab63c2eff0ac811619057967f87c837 to your computer and use it in GitHub Desktop.
Powerlevel9k custom python version in prompt
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(virtualenv custom_pyenv)
POWERLEVEL9K_CUSTOM_PYENV="echo \$(python -c 'import sys; print(\".\".join(map(str, sys.version_info[:2])))')"
@cumulus13
Copy link

POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(user pyenv custom_pyenv dir vcs ssh)
POWERLEVEL9K_CUSTOM_PYENV="echo \$(python -c 'import sys; print(\" \".join(map(str, sys.version.split(\" \")[:2]))[:-1].replace(\" (main\", \"\"))')"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment