Use preexec to initialize plugin

pull/1683/head
BarbUk 2020-11-14 12:13:34 +04:00
parent 22aae07d0d
commit c6341411c0
No known key found for this signature in database
GPG Key ID: DB301C759539E9FE
1 changed files with 5 additions and 1 deletions

View File

@ -43,4 +43,8 @@ _command_duration() {
fi
}
PS0="\[\$(_command_duration_pre_exec)\]"
preexec() (
_command_duration_pre_exec
)
preexec_install