diff options
author | Brent Faulkner <brent.faulkner@mosaic.com> | 2012-02-12 12:27:06 -0500 |
---|---|---|
committer | Brent Faulkner <brent.faulkner@mosaic.com> | 2012-02-12 12:27:06 -0500 |
commit | b62a3e89602bca23b794dd1e808d92a89880ad3f (patch) | |
tree | b3ed21127b9e059f42c0c0bbf544fd4485ea16d7 /themes/macovsky-ruby.zsh-theme | |
parent | fbf5b0ecb6b551b7d4ee2f1e85780c9fdbe052a0 (diff) | |
download | zsh-b62a3e89602bca23b794dd1e808d92a89880ad3f.tar.gz zsh-b62a3e89602bca23b794dd1e808d92a89880ad3f.tar.bz2 zsh-b62a3e89602bca23b794dd1e808d92a89880ad3f.zip |
handle case where ~/.rvm/bin/rvm-prompt is not in path, so "which" can't find it
Diffstat (limited to 'themes/macovsky-ruby.zsh-theme')
-rw-r--r-- | themes/macovsky-ruby.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/macovsky-ruby.zsh-theme b/themes/macovsky-ruby.zsh-theme index 045376761..69d80d588 100644 --- a/themes/macovsky-ruby.zsh-theme +++ b/themes/macovsky-ruby.zsh-theme @@ -1,7 +1,7 @@ # ZSH Theme - Preview: http://gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" -if which rvm-prompt &> /dev/null; then +if [ -e ~/.rvm/bin/rvm-prompt ]; then PROMPT='%{$fg[green]%}%~%{$reset_color%} %{$fg[red]%}‹$(~/.rvm/bin/rvm-prompt i v)› %{$reset_color%} $(git_prompt_info)%{$reset_color%}%B$%b ' else if which rbenv &> /dev/null; then |