From 089ab9ee9f9c9fcfb99140bd9340caaea961080a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 24 Oct 2021 08:16:44 +0530 Subject: [PATCH] Use a pre zsh 5.5 syntax for assoc arrays --- shell-integration/kitty.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell-integration/kitty.zsh b/shell-integration/kitty.zsh index d493f9093..1a4d19e95 100644 --- a/shell-integration/kitty.zsh +++ b/shell-integration/kitty.zsh @@ -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