aee8877988e4cf2de907550e2561a4793fa00496

Author
Menno Pruijssers <menno@wyzers.com>
Committer
ncanceill <nicolas.canceill@ens-cachan.org>
Date

Message

fixed rvm warning

Diff

 1diff --git a/themes/Soliah.zsh-theme b/themes/Soliah.zsh-theme
 2index 237e70fda314cc6ac047ebfbde7c38b2c641f8c3..070c5498164cc7bcf7d95e0cb44ca131b4f65702 100644
 3--- a/themes/Soliah.zsh-theme
 4+++ b/themes/Soliah.zsh-theme
 5@@ -32,11 +32,12 @@ function check_git_prompt_info() {
 6 
 7 # Determine if we are using a gemset.
 8 function rvm_gemset() {
 9-    GEMSET=`rvm gemset list | grep '=>' | cut -b4-`
10-    if [[ -n $GEMSET ]]; then
11-        echo "%{$fg[yellow]%}$GEMSET%{$reset_color%}|"
12-    fi 
13-
14+    if hash rvm 2>/dev/null; then
15+        GEMSET=`rvm gemset list | grep '=>' | cut -b4-`
16+        if [[ -n $GEMSET ]]; then
17+            echo "%{$fg[yellow]%}$GEMSET%{$reset_color%}|"
18+        fi 
19+    fi
20 }
21 
22 # Determine the time since last commit. If branch is clean,