Fix over-prompt updating the window title incorrectly

This commit is contained in:
Martin Sekera 2019-09-28 12:40:15 +02:00
parent dd6ea5923c
commit 164a5b7a76
2 changed files with 2 additions and 5 deletions

View file

@ -218,7 +218,7 @@ function precmd() {
function preexec () { function preexec () {
if [[ ! -v OVER_PROMPT_DISABLED ]]; then if [[ ! -v OVER_PROMPT_DISABLED ]]; then
__over_prompt_preexec || export OVER_PROMPT_DISABLED=1 __over_prompt_preexec "$1" || export OVER_PROMPT_DISABLED=1
fi fi
} }

View file

@ -13,10 +13,7 @@ function __over_prompt_set_title {
} }
function __over_prompt_preexec { function __over_prompt_preexec {
local -a cmd __over_prompt_set_title "${USER}: ${PWD} -> ${1}"
cmd=(${(z)1})
__over_prompt_set_title "${USER}: ${PWD} -> ${cmd}"
} }
function __over_prompt_precmd { function __over_prompt_precmd {