summaryrefslogtreecommitdiff
path: root/themes/crunch.zsh-theme
diff options
context:
space:
mode:
authorBrent Faulkner <brent.faulkner@mosaic.com>2012-02-12 12:27:06 -0500
committerBrent Faulkner <brent.faulkner@mosaic.com>2012-02-12 12:27:06 -0500
commitb62a3e89602bca23b794dd1e808d92a89880ad3f (patch)
treeb3ed21127b9e059f42c0c0bbf544fd4485ea16d7 /themes/crunch.zsh-theme
parentfbf5b0ecb6b551b7d4ee2f1e85780c9fdbe052a0 (diff)
downloadzsh-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/crunch.zsh-theme')
-rw-r--r--themes/crunch.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/crunch.zsh-theme b/themes/crunch.zsh-theme
index b2759a1b0..2fc066381 100644
--- a/themes/crunch.zsh-theme
+++ b/themes/crunch.zsh-theme
@@ -29,7 +29,7 @@ ZSH_THEME_GIT_PROMPT_DIRTY=" $CRUNCH_GIT_DIRTY_COLOR✗"
# Our elements:
CRUNCH_TIME_="$CRUNCH_BRACKET_COLOR{$CRUNCH_TIME_COLOR%T$CRUNCH_BRACKET_COLOR}%{$reset_color%}"
-if which rvm-prompt &> /dev/null; then
+if [ -e ~/.rvm/bin/rvm-prompt ]; then
CRUNCH_RVM_="$CRUNCH_BRACKET_COLOR"["$CRUNCH_RVM_COLOR\${\$(~/.rvm/bin/rvm-prompt i v g)#ruby-}$CRUNCH_BRACKET_COLOR"]"%{$reset_color%}"
else
if which rbenv &> /dev/null; then