Created
November 24, 2018 15:02
-
-
Save medwig/4ab63c2eff0ac811619057967f87c837 to your computer and use it in GitHub Desktop.
Powerlevel9k custom python version in prompt
This file contains 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
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(virtualenv custom_pyenv) | |
POWERLEVEL9K_CUSTOM_PYENV="echo \$(python -c 'import sys; print(\".\".join(map(str, sys.version_info[:2])))')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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\", \"\"))')"