Created
December 30, 2014 03:40
-
-
Save ggaaooppeenngg/6f11dc1afaca0c51e686 to your computer and use it in GitHub Desktop.
.bashrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#神依赖 | |
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