Use a pre zsh 5.5 syntax for assoc arrays

This commit is contained in:
Kovid Goyal 2021-10-24 08:16:44 +05:30
parent 4fb804efc6
commit 089ab9ee9f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -3,7 +3,8 @@
() {
if [[ ! -o interactive ]]; 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
if [[ "$i" == "no-cursor" ]]; then _ksi_prompt[cursor]='n'; fi
if [[ "$i" == "no-title" ]]; then _ksi_prompt[title]='n'; fi