Skip to content

Commit

Permalink
Detect if RVM isn't installed so we don't get an error
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Burns committed Mar 5, 2012
1 parent 752900f commit 140a9d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion themes/batbat.zsh-theme
Expand Up @@ -4,9 +4,14 @@ local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"

local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}'
local current_dir='%{$terminfo[bold]$fg[blue]%} %~%{$reset_color%}'
local rvm_ruby='%{$fg[red]%}‹$(rvm-prompt i v g)›%{$reset_color%}'
local git_branch='$(git_prompt_info)%{$reset_color%}'

# Display RVM info if available
if which rvm-prompt 1> /dev/null
then local rvm_ruby='%{$fg[red]%}‹$(rvm-prompt i v g)›%{$reset_color%}'
else local rvm_ruby=''
fi

# Rails Environment
# local r_env='$FG[201]$(echo $RAILS_ENV)$reset_color'
local r_env=' %{$FG[201]%}$(echo $RAILS_ENV)%{$reset_color%}'
Expand Down

0 comments on commit 140a9d9

Please sign in to comment.