Last active
February 8, 2016 02:07
-
-
Save ksato9700/9e17411a6bba0ae413c0 to your computer and use it in GitHub Desktop.
prompt setting for future pyenv-virtualenv
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
export PYENV_VIRTUALENV_DISABLE_PROMPT=1 | |
function updatePrompt { | |
PS1="\u@\h:\W\$ " | |
if [[ $VIRTUAL_ENV != "" ]]; then | |
PS1="(${VIRTUAL_ENV##*/})$PS1" | |
fi | |
} | |
export PROMPT_COMMAND='updatePrompt' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment