From 21f31321a5bac8d16cb0e2d96d6ff075935da593 Mon Sep 17 00:00:00 2001 From: Michel Date: Tue, 30 Jan 2024 11:32:43 +0100 Subject: [PATCH] fix(zsh): run-help --- .zimrc | 10 ++++++---- .zshrc | 5 ++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.zimrc b/.zimrc index 94c5e32..30293d5 100644 --- a/.zimrc +++ b/.zimrc @@ -4,9 +4,11 @@ # apt install bat curl fd-find fzf lsd ripgrep # dpkg-divert --divert /usr/bin/bat --rename /usr/bin/batcat +# dpkg-divert --divert /usr/share/man/man1/bat.1.gz --rename /usr/share/man/man1/batcat.1.gz # dpkg-divert --divert /usr/bin/fd --rename /usr/bin/fdfind +# dpkg-divert --divert /usr/share/man/man1/fd.1.gz --rename /usr/share/man/man1/fdfind.1.gz -### Behaviour +### Completion # Additional completion definitions for Zsh. zmodule zsh-users/zsh-completions @@ -15,9 +17,6 @@ zmodule zsh-users/zsh-completions # completion must be sourced after zsh-users/zsh-completions zmodule completion -# Figures out where to get the best help, and gets it. -zmodule run-help - ### Productivity @@ -47,6 +46,9 @@ zmodule b4b4r07/enhancd # ZVM — Zsh Vi Mode zmodule jeffreytse/zsh-vi-mode +# Loads the "inner function" & binds alt-H key +zmodule run-help + # Fast Syntax Highlighting # # `fast-theme --list` to list available themes -> "free" diff --git a/.zshrc b/.zshrc index 0609f9f..1c7f028 100644 --- a/.zshrc +++ b/.zshrc @@ -10,6 +10,9 @@ SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? ' # Characters considered part of a word by the line editor WORDCHARS="*?_-.~$" +# Set the "main" keyboard so `bindkey` without `-M` will change the expected map +bindkey -A viins main + ### ### Path @@ -489,7 +492,7 @@ typeset -U path fpath ### Completion Late Definitions ### -compdef bat=cat +compdef bat=batcat # Hide "parameters" (i.e. environment variables) when looking for a "command" zstyle ':completion:*:-command-:*' tag-order '!parameters'