Skip to content

Instantly share code, notes, and snippets.

@srstanic
Created July 1, 2016 14:06
Show Gist options
  • Save srstanic/8161470ece4e0353c57af7bb9194e7ad to your computer and use it in GitHub Desktop.
Save srstanic/8161470ece4e0353c57af7bb9194e7ad to your computer and use it in GitHub Desktop.
PS1='\[\033[38;5;11m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\h: \[$(tput sgr0)\]\[\033[38;5;6m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;15m\] \\$\[$(tput sgr0)\] '
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
source /usr/local/git/contrib/completion/git-completion.bash
source /usr/local/git/contrib/completion/git-prompt.sh
GIT_PS1_SHOWDIRTYSTATE=true
PS1='\[\033[38;5;11m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\h: \[$(tput sgr0)\]\[\033[38;5;6m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\]\[$(tput sgr0)\]\[\033[38;5;13m\]$(__git_ps1 " (%s)")\[$(tput sgr0)\]\[\033[38;5;15m\] \\$\[$(tput sgr0)\] '
fi
export PS1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment