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:
parent
b4b9168b19
commit
c51b1e8c17
1 changed files with 3 additions and 3 deletions
6
zshrc
6
zshrc
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue