Fix zsh vterm integration
This commit is contained in:
parent
88ccd467a3
commit
81ba75c291
@ -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)
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user