Commit e102da68 authored by Michal Sojka's avatar Michal Sojka Committed by Egmont Koblinger

prompt: Make zsh hook to precmd.

Previously used chpwd hook caused the escape sequence to be printed when
it shouldn't be printed. For example, when user wanted to list files in
a directory with "(cd dir; find) > list.txt", list.txt contained not
only the files but also the VTE escape sequence.

This patch changes the hook to precmd, which is invoked before
displaying prompt. This is the same "hook" that is used in bash.
parent 2af14ef9
......@@ -56,7 +56,7 @@ __vte_prompt_command() {
case "$TERM" in
[ -n "$BASH_VERSION" ] && PROMPT_COMMAND="__vte_prompt_command"
[ -n "$ZSH_VERSION" ] && chpwd_functions+=(__vte_osc7)
[ -n "$ZSH_VERSION" ] && precmd_functions+=(__vte_osc7)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment