aboutsummaryrefslogtreecommitdiffstats
path: root/oni/home/services
diff options
context:
space:
mode:
Diffstat (limited to 'oni/home/services')
-rw-r--r--oni/home/services/emacs.scm6
1 files 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"