mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-12 08:10:07 +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:
parent
c0ff47bea5
commit
debacbf530
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue