From a7f793b025cc8807216a1aa80e394cb4c0f8459a Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Thu, 30 Sep 2021 00:06:47 +0200 Subject: [PATCH] Fix outdated README about zsh --- README.org | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index cae32f6..ca695b2 100644 --- a/README.org +++ b/README.org @@ -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