Browse Source

fix(git-auto-fetch): don't override native `stat` command (#11068)

Felix Stupp 1 year ago
parent
commit
8362ae285a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      plugins/git-auto-fetch/git-auto-fetch.plugin.zsh

+ 2 - 1
plugins/git-auto-fetch/git-auto-fetch.plugin.zsh

@@ -2,7 +2,8 @@
 : ${GIT_AUTO_FETCH_INTERVAL:=60}
 
 # Necessary for the git-fetch-all function
-zmodload zsh/datetime zsh/stat
+zmodload zsh/datetime
+zmodload -F zsh/stat b:zstat  # only zstat command, not stat command
 
 function git-fetch-all {
   (