zsh shell integration: run startup command before any prompt/exec marking is done and set window title to the command being run
This commit is contained in:
parent
51cc6ec525
commit
54ad4fc63b
1 changed files with 6 additions and 2 deletions
|
|
@ -350,6 +350,12 @@ _ksi_deferred_init() {
|
|||
fi
|
||||
done
|
||||
|
||||
# run startup command
|
||||
if [[ -n "$krcs" ]]; then
|
||||
builtin print -nu "$_ksi_fd" -f '\e]2;%s\e\\' "$krcs"
|
||||
builtin eval "$krcs"
|
||||
fi
|
||||
|
||||
if (( $+functions[_ksi_preexec] )); then
|
||||
builtin typeset -ag preexec_functions
|
||||
preexec_functions+=(_ksi_preexec)
|
||||
|
|
@ -427,8 +433,6 @@ _ksi_deferred_init() {
|
|||
# to unfunction themselves when invoked. Unfunctioning is done by calling code.
|
||||
builtin unfunction _ksi_deferred_init
|
||||
|
||||
# run startup command
|
||||
if [[ -n "$krcs" ]]; then builtin eval "$krcs"; fi
|
||||
}
|
||||
|
||||
_ksi_transmit_data() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue