Fix outdated README about zsh
This commit is contained in:
parent
5a6b1fe9cb
commit
a7f793b025
10
README.org
10
README.org
@ -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
|
||||||
|
Reference in New Issue
Block a user