Created
July 29, 2015 15:55
-
-
Save jackmaney/ba9efbdf5e07160c0247 to your computer and use it in GitHub Desktop.
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
pyenv_python_version(){ | |
result="" | |
pyenv_version="$(pyenv version-name)"; | |
if [ -n "$pyenv_version" ]; then | |
result="$pyenv_version"; | |
fi | |
[[ -n "$result" ]] && echo "($result) " | |
} | |
export PS1="\$(pyenv_python_version)\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h\[\033[33;1m\]\w\[\033[m\]$ " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment