zsh: Source zsh alias file if it exists

This commit is contained in:
Marty Oehme 2023-06-20 12:58:53 +02:00
parent 2227e464a6
commit 06ccfe03b9
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

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