Skip compiled wordcode files (ie. zwc extensions)

This commit is contained in:
John Eckhart 2017-05-25 13:40:24 -04:00 committed by Geoff Harcourt
parent d6014c3a60
commit f4d509ffd0

4
zshrc
View file

@ -10,6 +10,7 @@ _load_settings() {
if [ -d "$_dir" ]; then
if [ -d "$_dir/pre" ]; then
for config in "$_dir"/pre/**/*(N-.); do
if [ ${config:e} = "zwc" ] ; then continue ; fi
. $config
done
fi
@ -23,7 +24,7 @@ _load_settings() {
:
;;
*)
if [ -f $config ]; then
if [[ -f $config && ${config:e} != "zwc" ]]; then
. $config
fi
;;
@ -32,6 +33,7 @@ _load_settings() {
if [ -d "$_dir/post" ]; then
for config in "$_dir"/post/**/*(N-.); do
if [ ${config:e} = "zwc" ] ; then continue ; fi
. $config
done
fi