1
0
Fork 0

zsh: cleanup and minor fix

This commit is contained in:
Von Random 2022-08-20 19:54:18 +03:00
parent 3e8ac63ace
commit 16e0c4e6dc

View file

@ -5,6 +5,7 @@ printf -v PROMPT4 $prompt_fmtn '+%N:%i'
prompt_state_file=/tmp/zsh_gitstatus_$$.tmp prompt_state_file=/tmp/zsh_gitstatus_$$.tmp
PROMPT= PROMPT=
prev_color=
typeset -A prompt_symbols=( typeset -A prompt_symbols=(
sep_a $'\ue0b0' sep_a $'\ue0b0'
sep_b $'\ue0b1' sep_b $'\ue0b1'
@ -40,7 +41,7 @@ precmd.prompt.clear() {
} }
precmd.prompt.add() { precmd.prompt.add() {
typeset string (($#<2)) && return 1
typeset data=$1 color=$2 typeset data=$1 color=$2
if [[ $color == same ]]; then if [[ $color == same ]]; then
PROMPT+="$prompt_symbols[sep_b] $data " PROMPT+="$prompt_symbols[sep_b] $data "