summaryrefslogtreecommitdiff
path: root/themes/superjarin.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/superjarin.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/superjarin.zsh-theme')
-rw-r--r--themes/superjarin.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/superjarin.zsh-theme b/themes/superjarin.zsh-theme
index 0be816de0..86955a560 100644
--- a/themes/superjarin.zsh-theme
+++ b/themes/superjarin.zsh-theme
@@ -1,5 +1,5 @@
# Grab the current version of ruby in use (via RVM): [ruby-1.8.7]
-if which rvm-prompt &> /dev/null; then
+if [ -e ~/.rvm/bin/rvm-prompt ]; then
JARIN_CURRENT_RUBY_="%{$fg[white]%}[%{$fg[red]%}\$(~/.rvm/bin/rvm-prompt i v)%{$fg[white]%}]%{$reset_color%}"
else
if which rbenv &> /dev/null; then