Skip to content

Instantly share code, notes, and snippets.

@amercier
Last active August 29, 2015 14:18
Show Gist options
  • Save amercier/f8e0c7cb201097f86b16 to your computer and use it in GitHub Desktop.
Save amercier/f8e0c7cb201097f86b16 to your computer and use it in GitHub Desktop.
git-prompt-config.sh
# export PS1_HOST_COLOR=$COLOR_WHITE
# export PS1_HOST_COLOR=$COLOR_BLUE
# export PS1_HOST_COLOR=$COLOR_LIGHT_BLUE
# export PS1_HOST_COLOR=$COLOR_GREEN
# export PS1_HOST_COLOR=$COLOR_LIGHT_GREEN
# export PS1_HOST_COLOR=$COLOR_CYAN
# export PS1_HOST_COLOR=$COLOR_LIGHT_CYAN
# export PS1_HOST_COLOR=$COLOR_RED
# export PS1_HOST_COLOR=$COLOR_LIGHT_RED
# export PS1_HOST_COLOR=$COLOR_PURPLE
# export PS1_HOST_COLOR=$COLOR_LIGHT_PURPLE
# export PS1_HOST_COLOR=$COLOR_BROWN
# export PS1_HOST_COLOR=$COLOR_YELLOW
# export PS1_HOST_COLOR=$COLOR_GRAY
# export PS1_HOST_COLOR=$COLOR_LIGHT_GRAY
export PROMPT_COMMAND="__git_ps1 '[\u@$PS1_HOST_COLOR\h$COLOR_NC \[\033[0;36m\]\w\[\033[0m\] ' ']\$ ' '%s'"
alias gc='git checkout'
alias gd='git diff'
alias gdc='git diff --cached'
alias gl-full="git log --graph --pretty=format:'%C(red black)%H%Creset -%C(yellow black)%d%Creset %s %C(green black)(%cr) %C(blue black)<%an>%Creset'"
alias gl="git log --graph --pretty=format:'%C(red black)%h%Creset -%C(yellow black)%d%Creset %s %C(green black)(%cr) %C(blue black)<%an>%Creset'"
alias gll='gl | h10'
alias gs='git status'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment