This commit is contained in:
Tod Beardsley
2012-05-04 11:11:19 -05:00
parent 1c5451f225
commit e147c75e89
+1 -1
View File
@@ -173,7 +173,7 @@ Now might be a good time to decorate up your prompt. I've hacked this together f
````bash
# Git and RVM prompting
function git-current-branch {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1) /'
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \\(.*\)/(\1) /'
}
export PS1="[\$(~/.rvm/bin/rvm-prompt v p g)] \$(git-current-branch)$PS1"
````