Fix outdated README about zsh

This commit is contained in:
Wojciech Kozlowski 2021-09-30 00:06:47 +02:00
parent 5a6b1fe9cb
commit a7f793b025

View File

@ -35,9 +35,15 @@
To enable directory tracking in vterm, put this in =.zshrc= To enable directory tracking in vterm, put this in =.zshrc=
#+BEGIN_SRC #+BEGIN_SRC
function chpwd() { vterm_printf(){
print -Pn "\e]51;$(pwd)\e\\"; printf "\e]%s\e\\" "$1"
} }
vterm_prompt_end() {
vterm_printf "51;A$(whoami)@$(hostname):$(pwd)";
}
setopt PROMPT_SUBST
PROMPT=$PROMPT'%{$(vterm_prompt_end)%}'
#+END_SRC #+END_SRC
* Installation * Installation