File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,6 @@ typeset -g AGKOZAK_COLORS_EXIT_STATUS=${AGKOZAK_COLORS_EXIT_STATUS:-red}
9595typeset -g AGKOZAK_COLORS_USER_HOST=${AGKOZAK_COLORS_USER_HOST:- green}
9696typeset -g AGKOZAK_COLORS_PATH=${AGKOZAK_COLORS_PATH:- blue}
9797typeset -g AGKOZAK_COLORS_BRANCH_STATUS=${AGKOZAK_COLORS_BRANCH_STATUS:- yellow}
98- typeset -g AGKOZAK_COLORS_PROMPT_CHAR=${AGKOZAK_COLORS_PROMPT_CHAR:- white}
9998
10099setopt PROMPT_SUBST NO_PROMPT_BANG
101100
@@ -754,9 +753,9 @@ _agkozak_prompt_string () {
754753 PROMPT+=' %(3V.%F{${AGKOZAK_COLORS_BRANCH_STATUS}}%3v%f.)'
755754 fi
756755 PROMPT+=' ${AGKOZAK_PROMPT_WHITESPACE}'
757- PROMPT+=' %F{${AGKOZAK_COLORS_PROMPT_CHAR}}'
756+ PROMPT+=' ${AGKOZAK_COLORS_PROMPT_CHAR:+ %F{${AGKOZAK_COLORS_PROMPT_CHAR}\ }}'
758757 PROMPT+=' %(4V.${AGKOZAK_PROMPT_CHAR[3]:-:}.%(!.${AGKOZAK_PROMPT_CHAR[2]:-%#}.${AGKOZAK_PROMPT_CHAR[1]:-%#}))'
759- PROMPT+=' %f '
758+ PROMPT+=' ${AGKOZAK_COLORS_PROMPT_CHAR:+%f} '
760759
761760 typeset -g AGKOZAK_CUSTOM_PROMPT=${PROMPT}
762761 typeset -g AGKOZAK_CURRENT_CUSTOM_PROMPT=${AGKOZAK_CUSTOM_PROMPT}
You can’t perform that action at this time.
0 commit comments