Skip to content

Instantly share code, notes, and snippets.

@jackmaney
Created July 29, 2015 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jackmaney/ba9efbdf5e07160c0247 to your computer and use it in GitHub Desktop.
Save jackmaney/ba9efbdf5e07160c0247 to your computer and use it in GitHub Desktop.
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