您的位置:首页 > 其它

mac .profile git 配置

2012-11-23 23:59 288 查看
.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\]"

~ $ 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: