Permalink
Browse files

fixed rvm warning

  • Loading branch information...
1 parent 99c9dbe commit aee8877988e4cf2de907550e2561a4793fa00496 @mennopruijssers mennopruijssers committed with ncanceill Sep 9, 2013
Showing with 6 additions and 5 deletions.
  1. +6 −5 themes/Soliah.zsh-theme
@@ -32,11 +32,12 @@ function check_git_prompt_info() {
# Determine if we are using a gemset.
function rvm_gemset() {
- GEMSET=`rvm gemset list | grep '=>' | cut -b4-`
- if [[ -n $GEMSET ]]; then
- echo "%{$fg[yellow]%}$GEMSET%{$reset_color%}|"
- fi
-
+ if hash rvm 2>/dev/null; then
+ GEMSET=`rvm gemset list | grep '=>' | cut -b4-`
+ if [[ -n $GEMSET ]]; then
+ echo "%{$fg[yellow]%}$GEMSET%{$reset_color%}|"
+ fi
+ fi
}
# Determine the time since last commit. If branch is clean,

0 comments on commit aee8877

Please sign in to comment.