zsh: Reorder zshrc components and move stuff

Put the external plugins to the end as well as z-sy-h to the end of the
plugins.
Put the last remaining lines in the zshrc in their own modules.
This commit is contained in:
2020-11-15 01:16:00 +01:00
parent 97ab5d64a6
commit af49c39ba3
12 changed files with 13 additions and 19 deletions

View 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

View File

@@ -0,0 +1 @@
! command -v direnv &>/dev/null || eval "$(direnv hook zsh)"