Commit aee88779 authored by Menno Pruijssers's avatar Menno Pruijssers Committed by ncanceill
Browse files

fixed rvm warning

parent 99c9dbed
...@@ -32,11 +32,12 @@ function check_git_prompt_info() { ...@@ -32,11 +32,12 @@ function check_git_prompt_info() {
# Determine if we are using a gemset. # Determine if we are using a gemset.
function rvm_gemset() { function rvm_gemset() {
GEMSET=`rvm gemset list | grep '=>' | cut -b4-` if hash rvm 2>/dev/null; then
if [[ -n $GEMSET ]]; then GEMSET=`rvm gemset list | grep '=>' | cut -b4-`
echo "%{$fg[yellow]%}$GEMSET%{$reset_color%}|" if [[ -n $GEMSET ]]; then
fi echo "%{$fg[yellow]%}$GEMSET%{$reset_color%}|"
fi
fi
} }
# Determine the time since last commit. If branch is clean, # Determine the time since last commit. If branch is clean,
......
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