Fix zsh vterm integration

This commit is contained in:
Jeremy Dormitzer 2022-04-14 09:18:00 -04:00
parent 88ccd467a3
commit 81ba75c291
2 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,7 @@
(vterm-max-scrollback 10000)
(vterm-environment '("TYPEWRITTEN_CURSOR=terminal"))
(vterm-ignore-blink-cursor t)
(vterm-clear-scrollback-when-clearing t)
(vterm-eval-cmds '(("find-file" find-file)
("ff" find-file)
("message" message)

View File

@ -164,6 +164,8 @@ fi
# This is to change the title of the buffer based on information provided by the
# shell. See, http://tldp.org/HOWTO/Xterm-Title-4.html, for the meaning of the
# various symbols.
#
# To actually use this in emacs, customize the variable vterm-buffer-name-string
autoload -U add-zsh-hook
add-zsh-hook -Uz chpwd (){ print -Pn "\e]2;%m:%2~\a" }
@ -178,5 +180,6 @@ vterm_prompt_end() {
}
setopt PROMPT_SUBST
PROMPT=$PROMPT'%{$(vterm_prompt_end)%}'
[[ -z "$tw_prompt" ]] || tw_prompt=$tw_prompt'%{$(vterm_prompt_end)%}'
[[ -f "$HOME/.zshrc-spotify" ]] && source "$HOME/.zshrc-spotify"