Commit 82bc5e68 authored by Bruno's avatar Bruno

Merge pull request #433 from bobthecow/bobthefish-bonus-output

Fix extraneous output from `type` on some fishes.
parents ccef2443 d87760e3
...@@ -351,9 +351,9 @@ end ...@@ -351,9 +351,9 @@ end
function __bobthefish_prompt_rubies -d 'Display current Ruby (rvm/rbenv)' function __bobthefish_prompt_rubies -d 'Display current Ruby (rvm/rbenv)'
[ "$theme_display_ruby" = 'no' ]; and return [ "$theme_display_ruby" = 'no' ]; and return
set -l ruby_version set -l ruby_version
if type rvm-prompt >/dev/null if type rvm-prompt >/dev/null 2>&1
set ruby_version (rvm-prompt i v g) set ruby_version (rvm-prompt i v g)
else if type rbenv >/dev/null else if type rbenv >/dev/null 2>&1
set ruby_version (rbenv version-name) set ruby_version (rbenv version-name)
# Don't show global ruby version... # Don't show global ruby version...
[ "$ruby_version" = (rbenv global) ]; and return [ "$ruby_version" = (rbenv global) ]; and return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment