zsh: cleanup and minor fix
This commit is contained in:
parent
3e8ac63ace
commit
16e0c4e6dc
1 changed files with 2 additions and 1 deletions
|
@ -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 "
|
||||||
|
|
Loading…
Reference in a new issue