1
0
Fork 0
mirror of synced 2024-11-22 15:25:34 -05:00

[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:
Eric Nielsen 2018-10-10 18:24:19 -05:00
parent 270b5d0390
commit 364d6b831d

View file

@ -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"