Skip to content

Commit

Permalink
Avoid warnings on zsh 5.0.0-5.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed May 7, 2020
1 parent 3142e20 commit 77b3fca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agkozak-zsh-prompt.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,9 @@ _agkozak_preexec() {
############################################################
_agkozak_precmd() {
emulate -L zsh
(( AGKOZAK_PROMPT_DEBUG )) && setopt LOCAL_OPTIONS WARN_CREATE_GLOBAL
(( AGKOZAK_PROMPT_DEBUG )) \
&& [[ $ZSH_VERSION != 5.0.[0-2] ]] \
&& setopt LOCAL_OPTIONS WARN_CREATE_GLOBAL

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

0 comments on commit 77b3fca

Please sign in to comment.