mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-12 19:18:28 +02: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:
parent
c0ff47bea5
commit
debacbf530
@ -5253,7 +5253,7 @@ _p9k_preexec1() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_p9k_preexec2() {
|
_p9k_preexec2() {
|
||||||
_p9k__preexec_cmd=$2
|
typeset -g _p9k__preexec_cmd=$2
|
||||||
_p9k__timer_start=EPOCHREALTIME
|
_p9k__timer_start=EPOCHREALTIME
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user