Use the lowercase kitty

This commit is contained in:
pagedown
2021-12-24 12:02:54 +08:00
parent 73ff508b51
commit ae35507f80
2 changed files with 6 additions and 6 deletions

View File

@@ -5,7 +5,7 @@
# Don't use [[ -v ... ]] because it doesn't work in zsh < 5.4. # Don't use [[ -v ... ]] because it doesn't work in zsh < 5.4.
if [[ -n "${KITTY_ORIG_ZDOTDIR+X}" ]]; then if [[ -n "${KITTY_ORIG_ZDOTDIR+X}" ]]; then
# Normally ZDOTDIR shouldn't be exported but it was in the environment # Normally ZDOTDIR shouldn't be exported but it was in the environment
# of Kitty, so we export it. # of kitty, so we export it.
'builtin' 'export' ZDOTDIR="$KITTY_ORIG_ZDOTDIR" 'builtin' 'export' ZDOTDIR="$KITTY_ORIG_ZDOTDIR"
'builtin' 'unset' 'KITTY_ORIG_ZDOTDIR' 'builtin' 'unset' 'KITTY_ORIG_ZDOTDIR'
else else

View File

@@ -1,13 +1,13 @@
#!/bin/zsh #!/bin/zsh
# #
# Enables integration between zsh and Kitty based on KITTY_SHELL_INTEGRATION. # Enables integration between zsh and kitty based on KITTY_SHELL_INTEGRATION.
# The latter is set by Kitty based on kitty.conf. # The latter is set by kitty based on kitty.conf.
# #
# This is an autoloadable function. It's invoked automatically in shells # This is an autoloadable function. It's invoked automatically in shells
# directly spawned by Kitty but not in any other shells. For example, running # directly spawned by kitty but not in any other shells. For example, running
# `exec zsh`, `sudo -E zsh`, `tmux`, or plain `zsh` will create a shell where # `exec zsh`, `sudo -E zsh`, `tmux`, or plain `zsh` will create a shell where
# kitty-integration won't automatically run. Zsh users who want integration with # kitty-integration won't automatically run. Zsh users who want integration with
# Kitty in all shells should add the following lines to their .zshrc: # kitty in all shells should add the following lines to their .zshrc:
# #
# if [[ -n $KITTY_INSTALLATION_DIR ]]; then # if [[ -n $KITTY_INSTALLATION_DIR ]]; then
# export KITTY_SHELL_INTEGRATION="enabled" # export KITTY_SHELL_INTEGRATION="enabled"
@@ -32,7 +32,7 @@ builtin emulate -L zsh -o no_warn_create_global
# 2: none of the above. # 2: none of the above.
builtin typeset -gi _ksi_state builtin typeset -gi _ksi_state
# Asks Kitty to print $@ to its stdout. This is for debugging. # Asks kitty to print $@ to its stdout. This is for debugging.
_ksi_debug_print() { _ksi_debug_print() {
builtin local data builtin local data
data=$(command base64 <<<"${(j: :}@}") || builtin return data=$(command base64 <<<"${(j: :}@}") || builtin return