Skip to content

Instantly share code, notes, and snippets.

@ksato9700
Last active February 8, 2016 02:07
Show Gist options
  • Save ksato9700/9e17411a6bba0ae413c0 to your computer and use it in GitHub Desktop.
Save ksato9700/9e17411a6bba0ae413c0 to your computer and use it in GitHub Desktop.
prompt setting for future pyenv-virtualenv
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