From 364d6b831d289cdaaa0cabcbbedd3953fb503192 Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Wed, 10 Oct 2018 18:24:19 -0500 Subject: [PATCH] [prompt] steeef: Fix git-info stashed zstyle Only define it if it's non-empty. New git-info changes will consider zstyles to be defined even if they are empty. --- modules/prompt/themes/steeef.zsh-theme | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/prompt/themes/steeef.zsh-theme b/modules/prompt/themes/steeef.zsh-theme index 4d6b092..344edcb 100644 --- a/modules/prompt/themes/steeef.zsh-theme +++ b/modules/prompt/themes/steeef.zsh-theme @@ -91,7 +91,9 @@ prompt_steeef_setup() { zstyle ':zim:git-info:unindexed' format "${col_unidx}${ind_unidx}" zstyle ':zim:git-info:indexed' format "${col_idx}${ind_idx}" zstyle ':zim:git-info:untracked' format "${col_untrk}${ind_untrk}" - zstyle ':zim:git-info:stashed' format "${col_stash}${ind_stash}" + if [[ -n ${ind_stash} ]]; then + zstyle ':zim:git-info:stashed' format "${col_stash}${ind_stash}" + fi zstyle ':zim:git-info:keys' format \ 'prompt' "(${col_brnch}%b%c%I%i%u%f%S%f)%s"