From d255ac9572f42e129359513090f4dc10c962e482 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Fri, 4 Sep 2020 18:26:17 +0200 Subject: [PATCH] Better help run-help with comment --- dotfiles/zsh/zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dotfiles/zsh/zshrc b/dotfiles/zsh/zshrc index 853deee..70236f0 100644 --- a/dotfiles/zsh/zshrc +++ b/dotfiles/zsh/zshrc @@ -68,8 +68,12 @@ source "$HOME/github_dotfiles/zsh-vim-mode/zsh-vim-mode.plugin.zsh" # HELP COMMAND +# By default in zsh, run-help is an alias to man, which is useless. +# Here we load the zsh run-help function and name it help, just like in bash. +if command -v run-help >/dev/null 2>&1; then + unalias run-help +fi autoload -Uz run-help -unalias run-help alias help=run-help