summaryrefslogtreecommitdiff
path: root/themes/dallas.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/dallas.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/dallas.zsh-theme')
-rw-r--r--themes/dallas.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/dallas.zsh-theme b/themes/dallas.zsh-theme
index e9b4f852a..02285df52 100644
--- a/themes/dallas.zsh-theme
+++ b/themes/dallas.zsh-theme
@@ -3,7 +3,7 @@
# Grab the current date (%D) and time (%T) wrapped in {}: {%D %T}
DALLAS_CURRENT_TIME_="%{$fg[white]%}{%{$fg[yellow]%}%D %T%{$fg[white]%}}%{$reset_color%}"
# 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
DALLAS_CURRENT_RUBY_="%{$fg[white]%}[%{$fg[magenta]%}\$(~/.rvm/bin/rvm-prompt i v)%{$fg[white]%}]%{$reset_color%}"
else
if which rbenv &> /dev/null; then