摘要:
function git-branch-name { git symbolic-ref --short -q HEAD 2>/dev/null } function git-branch-prompt { local branch=`git-branch-name` if [ $branch ]; then printf " [%s]" $branch; fi } PS1="\u@\... 阅读全文
posted @ 2018-07-17 15:59
小天儿
阅读(2115)
评论(0)
推荐(0)