Skip to content

Instantly share code, notes, and snippets.

@mdellavo
Created January 5, 2022 15:50
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 mdellavo/614f7a54b379a6c8c5786dff73e07ba2 to your computer and use it in GitHub Desktop.
Save mdellavo/614f7a54b379a6c8c5786dff73e07ba2 to your computer and use it in GitHub Desktop.
eval "$(pyenv init --path 2>/dev/null)"
eval "$(pyenv init - 2>/dev/null)"
eval "$(pyenv virtualenv-init - 2>/dev/null)"
export PS1='($(pyenv version-name)) '$PS1
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWCOLORHINTS=true
if [ -f /usr/local/etc/bash_completion.d/git-prompt.sh ]; then
source /usr/local/etc/bash_completion.d/git-prompt.sh
# __git_ps1 takes pre and post arguments and a format string, to build PS1
export PROMPT_COMMAND="${PROMPT_COMMAND} "'__git_ps1 "'$PS1'" "\\\$ " " [%s]"'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment