zsh: Small improvement

Use the aliases dictionary instead of calling the builtin alias command.
Autoload without alias expansion using the zsh style.
This commit is contained in:
2020-10-24 18:46:20 +02:00
parent f170429306
commit 38f1fe4677

View File

@@ -118,8 +118,8 @@ comp-source "$ZSH_CONF/fzf-tab/fzf-tab.plugin.zsh"
## Load external config files and modules
autoload edit-command-line; zle -N edit-command-line
! alias run-help >/dev/null 2>&1 || unalias run-help
autoload run-help run-help-git zmv
(( ! $+aliases[run-help] )) || unalias run-help
autoload -Uz run-help run-help-git zmv
if [[ -d "$ZDOTDIR/autoload" ]]; then
fpath=("$ZDOTDIR/autoload" $fpath)
autoload -Uz -- "" "${fpath[1]}"/[^_.]*(.xN:t)