mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 21:39:48 +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:
commit
c5a890585b
1 changed files with 1 additions and 3 deletions
|
@ -1,7 +1,5 @@
|
|||
# get the name of the branch we are on
|
||||
function rvm_prompt_info() {
|
||||
ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return
|
||||
echo "($ruby_version)"
|
||||
[[ ! -z $ruby_version ]] && echo "($ruby_version)"
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue