Gathering Knowledge on the internet I found this method of sourcing files to .zshrc to be very convenient for me. But my question is how would this for loop work and which files will be loaded 1st? For example of if I have a file called 0_alias.zsh and then 1_options.zsh. Will the file with name 0 be loaded 1st?
function src {
[[ -r "$1" ]] && source "$1"
}
if [[ -d ~/.config/.zshell/func.d/ ]]; then
for func in ~/.config/.zshell/func.d/*.zsh; do
src "$func"
done
unset func
fi