Created
January 5, 2022 15:50
-
-
Save mdellavo/614f7a54b379a6c8c5786dff73e07ba2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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