1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2026-01-22 18:26:32 +01:00

Merge pull request #1330 from trobrock/hide-rvm-prompt

Don't show empty parens if you are using your system ruby
This commit is contained in:
Robby Russell
2012-10-09 06:39:34 -07:00

View File

@@ -1,7 +1,5 @@
# get the name of the branch we are on # get the name of the branch we are on
function rvm_prompt_info() { function rvm_prompt_info() {
ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return
echo "($ruby_version)" [[ ! -z $ruby_version ]] && echo "($ruby_version)"
} }