fix(zsh): run-help

This commit is contained in:
Michel 2024-01-30 11:32:43 +01:00
parent 5312fd7bf2
commit 21f31321a5
2 changed files with 10 additions and 5 deletions

10
.zimrc
View File

@ -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"

5
.zshrc
View File

@ -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'