浏览代码

Trying out some zsh-fu. Using the for x (*.zsh) source approach

Robby Russell 14 年之前
父节点
当前提交
1978c04daa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      oh-my-zsh.sh

+ 1 - 1
oh-my-zsh.sh

@@ -2,4 +2,4 @@
 
 
 # Load all of the config files in ~/oh-my-zsh that end in .zsh
 # Load all of the config files in ~/oh-my-zsh 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 i in $ZSH/*.zsh; do source $i; done;
+for config_file ($ZSH/*.zsh) source $config_file