From b07410da65cdeb97fa12b4a23f36a4e6324e0d01 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 15 Aug 2024 00:14:26 -0700 Subject: [PATCH] =?UTF-8?q?Don't=20use=20=E2=80=98add-zsh-hook=E2=80=99=20?= =?UTF-8?q?for=20setting=20up=20vterm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It seems that the ‘autoload’ and ‘add-zsh-hook’ calls somehow interfered with the later setup of the ‘zsh-autosuggestions’. --- oni/home/services/emacs.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/oni/home/services/emacs.scm b/oni/home/services/emacs.scm index 2018be5..1752b40 100644 --- a/oni/home/services/emacs.scm +++ b/oni/home/services/emacs.scm @@ -504,8 +504,10 @@ "fi\n" (if (maybe-value-set? (home-emacs-vterm-configuration-buffer-name-string config)) (string-append - "autoload -U add-zsh-hook\n" - "add-zsh-hook -Uz chpwd (){ print -Pn \"\\e]2;%m:%2~\\a\" }\n") + "vterm_chpwd(){ print -Pn \"\\e]2;%m:%2~\\a\" }\n" + "if [[ \"$INSIDE_EMACS\" = 'vterm' ]]; then\n" + " chpwd_functions+=(vterm_chpwd)\n" + "fi\n") "") "vterm_prompt_end() {\n" " vterm_printf \"51;A$(whoami)@$(hostname):$(pwd)\"\n"