From 52cda3f34ee4a2d14d7ba67e91a4d204adee6960 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 5 Dec 2023 21:30:58 +1100 Subject: [PATCH 1/3] Add 'dump' func, which shows you its arguments quoted --- dot-config/zsh/all/functions.zsh | 1 + dot-config/zsh/functions/dump | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 dot-config/zsh/functions/dump diff --git a/dot-config/zsh/all/functions.zsh b/dot-config/zsh/all/functions.zsh index 38d8133..65dc99f 100644 --- a/dot-config/zsh/all/functions.zsh +++ b/dot-config/zsh/all/functions.zsh @@ -3,5 +3,6 @@ # inherited in the environment so non-login shells need them, and you'll want # to call one in a script so non-interactive shells need them. autoload count +autoload dump autoload enphp autoload -Uz zargs zcalc zmv diff --git a/dot-config/zsh/functions/dump b/dot-config/zsh/functions/dump new file mode 100644 index 0000000..6a7b885 --- /dev/null +++ b/dot-config/zsh/functions/dump @@ -0,0 +1,2 @@ +#! zsh +print ${(qq)argv} From 91175a2b414ed9d4ec7466ce8210829a7d5ebee1 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 5 Dec 2023 21:31:39 +1100 Subject: [PATCH 2/3] Set up Kitty shell integration manually --- dot-config/zsh/interactive/kitty.zsh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 dot-config/zsh/interactive/kitty.zsh diff --git a/dot-config/zsh/interactive/kitty.zsh b/dot-config/zsh/interactive/kitty.zsh new file mode 100644 index 0000000..6d08c9c --- /dev/null +++ b/dot-config/zsh/interactive/kitty.zsh @@ -0,0 +1,6 @@ +if [[ -n $KITTY_INSTALLATION_DIR ]]; then + export KITTY_SHELL_INTEGRATION='no-title' + autoload -Uz -- $KITTY_INSTALLATION_DIR/shell-integration/zsh/kitty-integration + kitty-integration + unfunction kitty-integration +fi From 30f0f56c4ed707b82871f51e3171892c2433a24e Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 5 Dec 2023 21:32:02 +1100 Subject: [PATCH 3/3] Remove unused Zinit support function --- dot-config/zsh/zshrc.zsh | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/dot-config/zsh/zshrc.zsh b/dot-config/zsh/zshrc.zsh index 888d92d..2eed74e 100644 --- a/dot-config/zsh/zshrc.zsh +++ b/dot-config/zsh/zshrc.zsh @@ -10,17 +10,6 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]] source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi -# Optimised compinit taking advantage of zinit's completion handling, as well -# as compiling the resulting zcompdump file. Have zinit call this once -# everything is loaded using an atload ice. -dot-zsh-compinit() { - [[ -d $ZINIT[ZCOMPDUMP_PATH] ]] || mkdir -p ${ZINIT[ZCOMPDUMP_PATH]:h} - zicompinit || return $? - zicdreplay || return $? - ([[ $ZINIT[ZCOMPDUMP_PATH].zwc -nt $ZINIT[ZCOMPDUMP_PATH] ]] || zcompile $ZINIT[ZCOMPDUMP_PATH]) &! - return 0 -} - source $ZDOTDIR/plugins.zsh for f in $ZDOTDIR/interactive/*.zsh(N); source $f