浏览代码

refactor(init): rename variable (#11851)

LuckyWindsck 9 月之前
父节点
当前提交
dfe2f04de7
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      oh-my-zsh.sh

+ 4 - 4
oh-my-zsh.sh

@@ -187,12 +187,12 @@ _omz_source() {
   fi
   fi
 }
 }
 
 
-# Load all of the config files in ~/oh-my-zsh that end in .zsh
+# Load all of the lib files in ~/oh-my-zsh/lib that end in .zsh
 # TIP: Add files you don't want in git to .gitignore
 # TIP: Add files you don't want in git to .gitignore
-for config_file ("$ZSH"/lib/*.zsh); do
-  _omz_source "lib/${config_file:t}"
+for lib_file ("$ZSH"/lib/*.zsh); do
+  _omz_source "lib/${lib_file:t}"
 done
 done
-unset custom_config_file
+unset lib_file
 
 
 # Load all of the plugins that were defined in ~/.zshrc
 # Load all of the plugins that were defined in ~/.zshrc
 for plugin ($plugins); do
 for plugin ($plugins); do