Skip to content

Instantly share code, notes, and snippets.

@cicanci
Last active March 5, 2020 11:53
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 cicanci/5902a38875b24e7211f471286bf7b25e to your computer and use it in GitHub Desktop.
Save cicanci/5902a38875b24e7211f471286bf7b25e to your computer and use it in GitHub Desktop.
.bash_profile
### bash-git-prompt
if [ -f "/usr/local/opt/bash-git-prompt/share/gitprompt.sh" ]; then
__GIT_PROMPT_DIR="/usr/local/opt/bash-git-prompt/share"
source "/usr/local/opt/bash-git-prompt/share/gitprompt.sh"
fi
### bash-completion
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
GIT_PS1_SHOWDIRTYSTATE=true
export PS1='[\u@mbp \w$(__git_ps1)]\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment