1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-09-25 12:40:44 +00:00

Fix warning for parameter _p9k__preexec_cmd (#735)

With `setopt warn_create_global`, I get this warning:

    _p9k_preexec2:1: scalar parameter _p9k__preexec_cmd created globally in function _p9k_preexec2
This commit is contained in:
xPMo 2020-05-19 03:16:12 -05:00 committed by GitHub
parent c0ff47bea5
commit debacbf530
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5253,7 +5253,7 @@ _p9k_preexec1() {
}
_p9k_preexec2() {
_p9k__preexec_cmd=$2
typeset -g _p9k__preexec_cmd=$2
_p9k__timer_start=EPOCHREALTIME
}