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:
parent
e523aa74b2
commit
8b4e9f31ba
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue