浏览代码

Unset `config_file` variable in oh-my-zsh.sh

`config_file` variable will mess up with `cd` auto-complete command.

eg. I have a local dir named `Code`, and when I type `cd co<Tab>`,
config_file will show up, and doesn't make any sense...
Larry Lv 12 年之前
父节点
当前提交
6c5e63022d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      oh-my-zsh.sh

+ 1 - 0
oh-my-zsh.sh

@@ -56,6 +56,7 @@ done
 for config_file ($ZSH_CUSTOM/*.zsh(N)); do
   source $config_file
 done
+unset config_file
 
 # Load the theme
 if [ "$ZSH_THEME" = "random" ]