Introduced separator for segments of same color.

This commit is contained in:
Achim D. Brucker 2017-07-11 07:14:32 +01:00
parent 9a370d8b6d
commit c29d74ca50
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,7 @@ prompt_segment() {
if [[ $CURRENT_BG != 'NONE' && $1 != $CURRENT_BG ]]; then
echo -n " %{$bg%F{$CURRENT_BG}%}$SEGMENT_SEPARATOR%{$fg%} "
else
echo -n "%{$bg%}%{$fg%} "
echo -n "%{$bg%}%{$fg%}$SEGMENT_SEPARATOR_SAME_COLOR"
fi
CURRENT_BG=$1
[[ -n $3 ]] && echo -n $3
@ -145,6 +145,7 @@ INACTIVEPROMPT='%{%f%b%k%}$(build_inactive_prompt) '
# Default configuration
SEGMENT_SEPARATOR=$PL_BRARROW
SEGMENT_SEPARATOR_SAME_COLOR=" $PL_RARROW "
ISAVERSION=isa_version_dir
if [[ "$TERM" =~ ".*256.*" ]]; then