From 16e0c4e6dc95a3d877c11634d21aee496370c7ce Mon Sep 17 00:00:00 2001 From: Von Random Date: Sat, 20 Aug 2022 19:54:18 +0300 Subject: [PATCH] zsh: cleanup and minor fix --- zsh/prompt-powerline-native.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh/prompt-powerline-native.zsh b/zsh/prompt-powerline-native.zsh index 09d2deb..c5f2791 100644 --- a/zsh/prompt-powerline-native.zsh +++ b/zsh/prompt-powerline-native.zsh @@ -5,6 +5,7 @@ printf -v PROMPT4 $prompt_fmtn '+%N:%i' prompt_state_file=/tmp/zsh_gitstatus_$$.tmp PROMPT= +prev_color= typeset -A prompt_symbols=( sep_a $'\ue0b0' sep_b $'\ue0b1' @@ -40,7 +41,7 @@ precmd.prompt.clear() { } precmd.prompt.add() { - typeset string + (($#<2)) && return 1 typeset data=$1 color=$2 if [[ $color == same ]]; then PROMPT+="$prompt_symbols[sep_b] $data "