mac .profile git 配置

.profile 
export CLICOLOR=1
export LSCOLORS=gxfxaxdxcxegedabagacad
function parse_git_branch {
     ref=$(git symbolic-ref HEAD 2> /dev/null) || return
       echo "("${ref#refs/heads/}")"
}
alias desk='cd  /Users/jason/Desktop'
alias work='cd  /Users/jason/Desktop/work'
alias c='clear'
alias shutdown='sudo shutdown -h now'
export PS1="\[\e[32;1m\]\w\[\e[31;1m\]\$(parse_git_branch) \[\e[32;1m\]\$ \[\e[0m\]"
~ $ 

你可能感兴趣的:(mac .profile git 配置)