fix(zsh): run-help
This commit is contained in:
parent
5312fd7bf2
commit
21f31321a5
10
.zimrc
10
.zimrc
@ -4,9 +4,11 @@
|
|||||||
|
|
||||||
# apt install bat curl fd-find fzf lsd ripgrep
|
# apt install bat curl fd-find fzf lsd ripgrep
|
||||||
# dpkg-divert --divert /usr/bin/bat --rename /usr/bin/batcat
|
# 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/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.
|
# Additional completion definitions for Zsh.
|
||||||
zmodule zsh-users/zsh-completions
|
zmodule zsh-users/zsh-completions
|
||||||
@ -15,9 +17,6 @@ zmodule zsh-users/zsh-completions
|
|||||||
# completion must be sourced after zsh-users/zsh-completions
|
# completion must be sourced after zsh-users/zsh-completions
|
||||||
zmodule completion
|
zmodule completion
|
||||||
|
|
||||||
# Figures out where to get the best help, and gets it.
|
|
||||||
zmodule run-help
|
|
||||||
|
|
||||||
|
|
||||||
### Productivity
|
### Productivity
|
||||||
|
|
||||||
@ -47,6 +46,9 @@ zmodule b4b4r07/enhancd
|
|||||||
# ZVM — Zsh Vi Mode
|
# ZVM — Zsh Vi Mode
|
||||||
zmodule jeffreytse/zsh-vi-mode
|
zmodule jeffreytse/zsh-vi-mode
|
||||||
|
|
||||||
|
# Loads the "inner function" & binds alt-H key
|
||||||
|
zmodule run-help
|
||||||
|
|
||||||
# Fast Syntax Highlighting
|
# Fast Syntax Highlighting
|
||||||
#
|
#
|
||||||
# `fast-theme --list` to list available themes -> "free"
|
# `fast-theme --list` to list available themes -> "free"
|
||||||
|
5
.zshrc
5
.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
|
# Characters considered part of a word by the line editor
|
||||||
WORDCHARS="*?_-.~$"
|
WORDCHARS="*?_-.~$"
|
||||||
|
|
||||||
|
# Set the "main" keyboard so `bindkey` without `-M` will change the expected map
|
||||||
|
bindkey -A viins main
|
||||||
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### Path
|
### Path
|
||||||
@ -489,7 +492,7 @@ typeset -U path fpath
|
|||||||
### Completion Late Definitions
|
### Completion Late Definitions
|
||||||
###
|
###
|
||||||
|
|
||||||
compdef bat=cat
|
compdef bat=batcat
|
||||||
|
|
||||||
# Hide "parameters" (i.e. environment variables) when looking for a "command"
|
# Hide "parameters" (i.e. environment variables) when looking for a "command"
|
||||||
zstyle ':completion:*:-command-:*' tag-order '!parameters'
|
zstyle ':completion:*:-command-:*' tag-order '!parameters'
|
||||||
|
Loading…
Reference in New Issue
Block a user