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=
#+BEGIN_SRC
function chpwd() {
print -Pn "\e]51;$(pwd)\e\\";
vterm_printf(){
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
* Installation