From dad05f4d68a9efd060e344f2a446cc5072b80baa Mon Sep 17 00:00:00 2001 From: druckdev <63563978+druckdev@users.noreply.github.com> Date: Tue, 30 Jun 2020 03:08:36 +0200 Subject: [PATCH] Autoload and bind run-help --- .config/zsh/.zshrc | 2 ++ .config/zsh/plugins/keys.zsh | 1 + 2 files changed, 3 insertions(+) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 161ab1e..672a1cd 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -114,6 +114,8 @@ comp-source() { ## Load external config files and modules autoload edit-command-line; zle -N edit-command-line autoload zmv + ! alias run-help >/dev/null 2>&1 || unalias run-help + autoload run-help # stderred if [ -e "$ZSH_CONF/stderred/build/libstderred.so" ]; then export LD_PRELOAD="$ZSH_CONF/stderred/build/libstderred.so${LD_PRELOAD:+:$LD_PRELOAD}" diff --git a/.config/zsh/plugins/keys.zsh b/.config/zsh/plugins/keys.zsh index 5999929..b171645 100644 --- a/.config/zsh/plugins/keys.zsh +++ b/.config/zsh/plugins/keys.zsh @@ -6,6 +6,7 @@ # no delay when switching into NORMAL export KEYTIMEOUT=1 + bindkey '^[h' run-help ## History ## Alternatives to check out: {up,down}-line-or-search bindkey '^[[A' history-substring-search-up