From b07410da65cdeb97fa12b4a23f36a4e6324e0d01 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 15 Aug 2024 00:14:26 -0700 Subject: Don't use ‘add-zsh-hook’ for setting up vterm 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(-) (limited to 'oni/home') 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" -- cgit v1.2.3-54-g00ecf