From b8cb49c85751148fed27bdf8d3471f7796c14684 Mon Sep 17 00:00:00 2001 From: Ben Golder Date: Thu, 25 Apr 2024 16:09:18 -0700 Subject: [PATCH] Skip zwc zsh function files - Uses the `~` glob operator to be consistent with `_load_settings()`` - moved loading after `_load_settings``, because `setopt extendedglob` is needed for the `~` glob operator and is run in `_load_settings()` --- zshrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/zshrc b/zshrc index ff86d5d62b..daff039032 100644 --- a/zshrc +++ b/zshrc @@ -1,8 +1,3 @@ -# load custom executable functions -for function in ~/.zsh/functions/*; do - source $function -done - # extra files in ~/.zsh/configs/pre , ~/.zsh/configs , and ~/.zsh/configs/post # these are loaded first, second, and third, respectively. _load_settings() { @@ -34,6 +29,11 @@ _load_settings() { } _load_settings "$HOME/.zsh/configs" +# load custom executable functions +for function in ~/.zsh/functions/*~*.zwc; do + source $function +done + # Local config [[ -f ~/.zshrc.local ]] && source ~/.zshrc.local