Fix initialization routine
Will now source all necessary .d/ directories, also from zsh.
This commit is contained in:
parent
69511541ec
commit
1059f8eb9f
2 changed files with 13 additions and 0 deletions
|
@ -10,3 +10,10 @@ if [ -d "$XDG_CONFIG_HOME/sh/profile.d" ]; then
|
|||
done
|
||||
unset file
|
||||
fi
|
||||
if [ -d "$XDG_CONFIG_HOME/zsh/profile.d" ]; then
|
||||
for file in "$XDG_CONFIG_HOME/zsh/profile.d"/*.sh; do
|
||||
# shellcheck disable=1090
|
||||
source "$file"
|
||||
done
|
||||
unset file
|
||||
fi
|
||||
|
|
|
@ -36,6 +36,12 @@ if [ -d "$CONFDIR/sh/alias.d" ]; then
|
|||
done
|
||||
unset _alias
|
||||
fi
|
||||
if [ -d "$ZSHCONFDIR/alias.d" ]; then
|
||||
for _alias in "$ZSHCONFDIR/alias.d"/*.sh; do
|
||||
. "$_alias"
|
||||
done
|
||||
unset _alias
|
||||
fi
|
||||
|
||||
# Correct spelling for commands
|
||||
setopt correct
|
||||
|
|
Loading…
Reference in a new issue