diff options
author | Kory Prince <korylprince@gmail.com> | 2014-03-17 11:02:47 -0500 |
---|---|---|
committer | Kory Prince <korylprince@gmail.com> | 2014-03-17 11:02:47 -0500 |
commit | d3babe0d79dc7dbcce15c9285c4c5b604f595c9a (patch) | |
tree | 4bc7275b0929dd484793cc0aad15ce48464378b4 | |
parent | ca900216302aa1138c793971cf877b5d4e88fb06 (diff) | |
download | zsh-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-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' |