zsh: Reorder zshrc.d that autoload is first
This way the functions are already autoloaded and in alias.zsh and others can be checked for existence.
This commit is contained in:
12
.config/zsh/zshrc.d/00-autoload.zsh
Normal file
12
.config/zsh/zshrc.d/00-autoload.zsh
Normal file
@@ -0,0 +1,12 @@
|
||||
autoload -U select-word-style && select-word-style bash
|
||||
|
||||
autoload edit-command-line; zle -N edit-command-line
|
||||
|
||||
(( ! $+aliases[run-help] )) || unalias run-help
|
||||
autoload -Uz run-help run-help-git zmv
|
||||
|
||||
# Load autoloadable functions
|
||||
if [[ -d "$ZDOTDIR/autoload" ]]; then
|
||||
fpath=("$ZDOTDIR/autoload" $fpath)
|
||||
autoload -Uz -- "" "${fpath[1]}"/[^_.]*(.xN:t)
|
||||
fi
|
||||
Reference in New Issue
Block a user