diff options
author | Robby Russell <robby@planetargon.com> | 2014-03-22 13:26:51 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2014-03-22 13:26:51 -0700 |
commit | 2e74fe735e07764a36c865db31bc6b82592139e8 (patch) | |
tree | 6da9e27293d4c691212a9c06738246c6ad9f8082 /themes/gallois.zsh-theme | |
parent | 2403b05613007efdc770b179f9824ac320dfefc6 (diff) | |
parent | d3babe0d79dc7dbcce15c9285c4c5b604f595c9a (diff) | |
download | zsh-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/gallois.zsh-theme')
-rw-r--r-- | themes/gallois.zsh-theme | 2 |
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' |