zsh: Fix loading aliases from .zsh extensions

We should load alias files from .zsh extension files in the alias dir,
not .sh files.
This commit is contained in:
Marty Oehme 2025-02-24 12:11:52 +01:00
parent e523aa74b2
commit 8b4e9f31ba
Signed by: Marty
GPG key ID: 4E535BC19C61886E
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ if [ -d "$XDG_CONFIG_HOME/sh/profile.d" ]; then
unset file unset file
fi fi
if [ -d "$XDG_CONFIG_HOME/zsh/profile.d" ]; then if [ -d "$XDG_CONFIG_HOME/zsh/profile.d" ]; then
for file in "$XDG_CONFIG_HOME/zsh/profile.d"/*.sh; do for file in "$XDG_CONFIG_HOME/zsh/profile.d"/*.zsh; do
# shellcheck disable=1090 # shellcheck disable=1090
source "$file" source "$file"
done done

View file

@ -110,7 +110,7 @@ fi
# shellcheck source=alias # shellcheck source=alias
[ -f "$ZSHCONFDIR/alias" ] && source "$ZSHCONFDIR/alias" [ -f "$ZSHCONFDIR/alias" ] && source "$ZSHCONFDIR/alias"
if [ -d "$ZSHCONFDIR/alias.d" ]; then if [ -d "$ZSHCONFDIR/alias.d" ]; then
for _alias in "$ZSHCONFDIR/alias.d"/*.sh; do for _alias in "$ZSHCONFDIR/alias.d"/*.zsh; do
source "$_alias" source "$_alias"
done done
unset _alias unset _alias