summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKory Prince <korylprince@gmail.com>2014-03-17 11:02:47 -0500
committerKory Prince <korylprince@gmail.com>2014-03-17 11:02:47 -0500
commitd3babe0d79dc7dbcce15c9285c4c5b604f595c9a (patch)
tree4bc7275b0929dd484793cc0aad15ce48464378b4
parentca900216302aa1138c793971cf877b5d4e88fb06 (diff)
downloadzsh-d3babe0d79dc7dbcce15c9285c4c5b604f595c9a.tar.gz
zsh-d3babe0d79dc7dbcce15c9285c4c5b604f595c9a.tar.bz2
zsh-d3babe0d79dc7dbcce15c9285c4c5b604f595c9a.zip
Don't show useless '[]' when chruby_prompt_info is empty
-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'