Skip to content

Instantly share code, notes, and snippets.

@adfinlay
Created October 9, 2013 16:35
Show Gist options
  • Save adfinlay/6904164 to your computer and use it in GitHub Desktop.
Save adfinlay/6904164 to your computer and use it in GitHub Desktop.
Git specific bashrc settings
alias gl="git l"
alias gg="git grep -n"
alias gd="git d"
alias gs="git s"
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
GIT_PS1_SHOWDIRTYSTATE=true
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[31m\]$(__git_ps1)\[\033[00m\]\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment