zsh: Source zsh alias file if it exists
This commit is contained in:
parent
2227e464a6
commit
06ccfe03b9
1 changed files with 2 additions and 0 deletions
|
@ -81,6 +81,8 @@ if [ -d "$CONFDIR/sh/alias.d" ]; then
|
||||||
done
|
done
|
||||||
unset _alias
|
unset _alias
|
||||||
fi
|
fi
|
||||||
|
# shellcheck source=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"/*.sh; do
|
||||||
source "$_alias"
|
source "$_alias"
|
||||||
|
|
Loading…
Reference in a new issue