Use a pre zsh 5.5 syntax for assoc arrays
This commit is contained in:
parent
4fb804efc6
commit
089ab9ee9f
@ -3,7 +3,8 @@
|
|||||||
() {
|
() {
|
||||||
if [[ ! -o interactive ]]; then return; fi
|
if [[ ! -o interactive ]]; then return; fi
|
||||||
if [[ -z "$KITTY_SHELL_INTEGRATION" ]]; then return; fi
|
if [[ -z "$KITTY_SHELL_INTEGRATION" ]]; then return; fi
|
||||||
typeset -g -A _ksi_prompt=([state]='first-run' [cursor]='y' [title]='y' [mark]='y' [complete]='y')
|
typeset -g -A _ksi_prompt
|
||||||
|
_ksi_prompt=(state first-run cursor y title y mark y complete y)
|
||||||
for i in ${=KITTY_SHELL_INTEGRATION}; do
|
for i in ${=KITTY_SHELL_INTEGRATION}; do
|
||||||
if [[ "$i" == "no-cursor" ]]; then _ksi_prompt[cursor]='n'; fi
|
if [[ "$i" == "no-cursor" ]]; then _ksi_prompt[cursor]='n'; fi
|
||||||
if [[ "$i" == "no-title" ]]; then _ksi_prompt[title]='n'; fi
|
if [[ "$i" == "no-title" ]]; then _ksi_prompt[title]='n'; fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user