Fix the zsh config glob

The glob used a modifier, but it was modifying a directory instead of a
glob that matched all the files in the directory. Add the missing `*` to
fix this.
This commit is contained in:
Mike Burns 2014-10-03 10:28:08 -07:00
parent b4b9168b19
commit c51b1e8c17
No known key found for this signature in database
GPG key ID: 84ABBCC15B486CC6

6
zshrc
View file

@ -66,12 +66,12 @@ _load_settings() {
_dir="$1"
if [ -d "$_dir" ]; then
if [ -d "$_dir/pre" ]; then
for config in "$_dir"/pre/**/(N-.); do
for config in "$_dir"/pre/**/*(N-.); do
. $config
done
fi
for config in "$_dir"/**/(N-.); do
for config in "$_dir"/**/*(N-.); do
case "$config" in
"$_dir"/pre/*)
:
@ -88,7 +88,7 @@ _load_settings() {
done
if [ -d "$_dir/post" ]; then
for config in "$_dir"/post/**/(N-.); do
for config in "$_dir"/post/**/*(N-.); do
. $config
done
fi