[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.
This commit is contained in:
parent
270b5d0390
commit
364d6b831d
1 changed files with 3 additions and 1 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue