6c5e63022d9f8c0c9a930b0110da3a4b8fee6cf0

Author
Larry Lv <larrylv1990@gmail.com>
Committer
Larry Lv <larrylv1990@gmail.com>
Date

Message

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...

Diff

 1diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
 2index 4a5b175d5b488816d1558ddfceb615d0bcff1b78..689a79feffe989472c5b4aa76117a746f4e696c8 100644
 3--- a/oh-my-zsh.sh
 4+++ b/oh-my-zsh.sh
 5@@ -56,6 +56,7 @@ done
 6 for config_file ($ZSH_CUSTOM/*.zsh(N)); do
 7   source $config_file
 8 done
 9+unset config_file
10 
11 # Load the theme
12 if [ "$ZSH_THEME" = "random" ]