浏览代码

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

Felix Stupp 1 年之前
父节点
当前提交
8362ae285a
共有 1 个文件被更改,包括 2 次插入1 次删除
  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}
 : ${GIT_AUTO_FETCH_INTERVAL:=60}
 
 
 # Necessary for the git-fetch-all function
 # 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 {
 function git-fetch-all {
   (
   (