From d87760e34c2e4aa5d0940dc49f851677ca505446 Mon Sep 17 00:00:00 2001
From: Justin Hileman <justin@justinhileman.info>
Date: Thu, 23 Apr 2015 10:31:52 -0700
Subject: [PATCH] Fix extraneous output from `type` on some fishes.

---
 themes/bobthefish/fish_prompt.fish | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/themes/bobthefish/fish_prompt.fish b/themes/bobthefish/fish_prompt.fish
index 9daefdc..8939440 100644
--- a/themes/bobthefish/fish_prompt.fish
+++ b/themes/bobthefish/fish_prompt.fish
@@ -351,9 +351,9 @@ end
 function __bobthefish_prompt_rubies -d 'Display current Ruby (rvm/rbenv)'
   [ "$theme_display_ruby" = 'no' ]; and return
   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)
-  else if type rbenv >/dev/null
+  else if type rbenv >/dev/null 2>&1
     set ruby_version (rbenv version-name)
     # Don't show global ruby version...
     [ "$ruby_version" = (rbenv global) ]; and return
-- 
GitLab