Fix over-prompt updating the window title incorrectly
This commit is contained in:
parent
dd6ea5923c
commit
164a5b7a76
2 changed files with 2 additions and 5 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue