Skip to content

Commit 77b3fca

Browse files
author
root
committed
Avoid warnings on zsh 5.0.0-5.0.2
1 parent 3142e20 commit 77b3fca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

agkozak-zsh-prompt.plugin.zsh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,9 @@ _agkozak_preexec() {
823823
############################################################
824824
_agkozak_precmd() {
825825
emulate -L zsh
826-
(( AGKOZAK_PROMPT_DEBUG )) && setopt LOCAL_OPTIONS WARN_CREATE_GLOBAL
826+
(( AGKOZAK_PROMPT_DEBUG )) \
827+
&& [[ $ZSH_VERSION != 5.0.[0-2] ]] \
828+
&& setopt LOCAL_OPTIONS WARN_CREATE_GLOBAL
827829

828830
# Calculate the time it took to run the last command
829831
psvar[8]=''

0 commit comments

Comments
 (0)