summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2014-03-22 13:26:51 -0700
committerRobby Russell <robby@planetargon.com>2014-03-22 13:26:51 -0700
commit2e74fe735e07764a36c865db31bc6b82592139e8 (patch)
tree6da9e27293d4c691212a9c06738246c6ad9f8082 /themes
parent2403b05613007efdc770b179f9824ac320dfefc6 (diff)
parentd3babe0d79dc7dbcce15c9285c4c5b604f595c9a (diff)
downloadzsh-2e74fe735e07764a36c865db31bc6b82592139e8.tar.gz
zsh-2e74fe735e07764a36c865db31bc6b82592139e8.tar.bz2
zsh-2e74fe735e07764a36c865db31bc6b82592139e8.zip
Merge pull request #2619 from korylprince/master
Don't show useless '[]' when chruby_prompt_info is empty
Diffstat (limited to 'themes')
-rw-r--r--themes/gallois.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/gallois.zsh-theme b/themes/gallois.zsh-theme
index 1ff86b54c..f1057a9a9 100644
--- a/themes/gallois.zsh-theme
+++ b/themes/gallois.zsh-theme
@@ -18,7 +18,7 @@ else
if which rbenv &> /dev/null; then
RPS1='$(git_custom_status)%{$fg[red]%}[`rbenv version | sed -e "s/ (set.*$//"`]%{$reset_color%} $EPS1'
else
- if which chruby_prompt_info &> /dev/null; then
+ if [[ -n `which chruby_prompt_info` && -n `chruby_prompt_info` ]]; then
RPS1='$(git_custom_status)%{$fg[red]%}[`chruby_prompt_info`]%{$reset_color%} $EPS1'
else
RPS1='$(git_custom_status) $EPS1'