diff --git a/zshrc b/zshrc index 554d673..20f7d3e 100644 --- a/zshrc +++ b/zshrc @@ -10,7 +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 ; done + if [ ${config:e} = "zwc" ] ; then continue ; fi . $config done fi @@ -24,8 +24,7 @@ _load_settings() { : ;; *) - if [ -f $config ]; then - if [ ${config:e} = "zwc" ] ; then continue ; done + if [ -f $config && ${config:e} != "zwc" ]; then . $config fi ;; @@ -34,7 +33,7 @@ _load_settings() { if [ -d "$_dir/post" ]; then for config in "$_dir"/post/**/*(N-.); do - if [ ${config:e} = "zwc" ] ; then continue ; done + if [ ${config:e} = "zwc" ] ; then continue ; fi . $config done fi