zsh: Only source *.zsh files
Only source `*.zsh` files to prevent confusion or errors on startup. Rename all files in 90-external-plugins accordingly.
This commit is contained in:
@@ -32,7 +32,7 @@ folder-source() {
|
|||||||
for f in "$1"/[^._]*(N); do
|
for f in "$1"/[^._]*(N); do
|
||||||
if [[ -d "$f" ]]; then
|
if [[ -d "$f" ]]; then
|
||||||
folder-source "$f"
|
folder-source "$f"
|
||||||
elif [[ -n "${f##*.zwc}" ]]; then
|
elif [[ $f =~ .zsh$ ]]; then
|
||||||
comp-source "$f"
|
comp-source "$f"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user