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:
parent
cae0bd04ea
commit
88618e5858
1 changed files with 4 additions and 3 deletions
7
zshrc
7
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 ; 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
|
||||
|
|
Loading…
Add table
Reference in a new issue