From 38f1fe4677d9def3b1729fa83c58aebbbaa126c6 Mon Sep 17 00:00:00 2001 From: druckdev <63563978+druckdev@users.noreply.github.com> Date: Sat, 24 Oct 2020 18:46:20 +0200 Subject: [PATCH] zsh: Small improvement Use the aliases dictionary instead of calling the builtin alias command. Autoload without alias expansion using the zsh style. --- .config/zsh/.zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index feb08cd..508bb6c 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -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)