Skip to content

Instantly share code, notes, and snippets.

@ggaaooppeenngg
Created December 30, 2014 03:40
Show Gist options
  • Save ggaaooppeenngg/6f11dc1afaca0c51e686 to your computer and use it in GitHub Desktop.
Save ggaaooppeenngg/6f11dc1afaca0c51e686 to your computer and use it in GitHub Desktop.
.bashrc
#神依赖
alias gg="git log --graph --color --decorate --stat"
alias gs="git status --short"
function my_promot {
local __git_branch='`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/git:\\\\\1\/`'
export PS1="\[\e[32;1m\](\[\e[37;1m\]\u\[\e[32;1m\])-(\[\e[37;1m\]\@\d\[\e[32;1m\])-(\[\e[37;1m\]\w\[\e[32;1m\])\n(\[\e[37;1m\]$__git_branch\[\e[32;1m\])->\[\e[0m\]"
}
my_promot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment