Revert "Combine conditional statements"

This reverts commit cae0bd04ea.

This implementation appears to break sourced configurations. Reverting
until we figure out a resolution.
This commit is contained in:
Geoff Harcourt 2017-05-25 13:04:30 -04:00
parent cae0bd04ea
commit 88618e5858

7
zshrc
View file

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