Update globbing for zsh config files

This commit is contained in:
Eric Torres 2022-12-07 19:00:51 -08:00
parent 6442b3e606
commit c83e62f123

View File

@ -71,11 +71,11 @@ rgenv () {
# Detect OS to autoload uncommon config files # Detect OS to autoload uncommon config files
if [[ "$(uname)" =~ "Darwin" ]]; then if [[ "$(uname)" =~ "Darwin" ]]; then
for dotfile in "$XDG_CONFIG_HOME"/zsh-macos/*(.); do for dotfile in "$XDG_CONFIG_HOME"/zsh-macos/*zsh*(.); do
source $dotfile source $dotfile
done done
else else
for dotfile in "$XDG_CONFIG_HOME"/zsh-linux/*(.); do for dotfile in "$XDG_CONFIG_HOME"/zsh-linux/*zsh*(.); do
source $dotfile source $dotfile
done done
fi fi