aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorzwPapEr <zw.paper@gmail.com>2020-03-09 13:17:35 +0800
committerzwPapEr <zw.paper@gmail.com>2020-03-09 13:17:35 +0800
commit8471a3a401e88d5fd14c9e8b0ffac259cf3406e8 (patch)
tree0edd629d95de05dbf09e7e50871bd5a12b4d25eb /README.md
parent754eb062c2d2405a8d614b62d9fa7057bad302ce (diff)
Update zsh directory track config
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 691a7a2..4f6c3fc 100644
--- a/README.md
+++ b/README.md
@@ -303,7 +303,8 @@ For `zsh`, put this at the end of your `.zshrc`:
vterm_prompt_end() {
vterm_printf "51;A$(whoami)@$(hostname):$(pwd)";
}
-PROMPT=$PROMPT"%{$(vterm_prompt_end)%}"
+setopt PROMPT_SUBST
+PROMPT=$PROMPT'%{$(vterm_prompt_end)%}'
```
For `bash`, put this at the end of your `.bashrc`: