summaryrefslogtreecommitdiff
path: root/themes/zhann.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/zhann.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/zhann.zsh-theme')
-rw-r--r--themes/zhann.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/zhann.zsh-theme b/themes/zhann.zsh-theme
index 574e0cec3..5c49fe79b 100644
--- a/themes/zhann.zsh-theme
+++ b/themes/zhann.zsh-theme
@@ -1,6 +1,6 @@
PROMPT='%{$fg_bold[green]%}%p %{$fg[cyan]%}%c%{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
-if which rvm-prompt &> /dev/null; then
+if [ -e ~/.rvm/bin/rvm-prompt ]; then
RPROMPT='%{$reset_color%} %{$fg[red]%}$(~/.rvm/bin/rvm-prompt i v g) %{$reset_color%}'
else
if which rbenv &> /dev/null; then