zsh: Move man wrapper into function for completion

This commit is contained in:
2021-01-04 16:34:16 +01:00
parent 4d4a5d4ef2
commit d0cd6ffef0
3 changed files with 12 additions and 3 deletions

View File

@@ -31,8 +31,9 @@ _comp_options+=(globdots)
# Taken from http://leahneukirchen.org/dotfiles/.zshrc
zstyle ':completion:*:(diff|meld|trash):*' ignore-line yes
# Use completion of `ls` for `ls-show-hidden`
# Use completion of commands for their wrapper functions
compdef ls-show-hidden=ls
compdef nvim-man=man
# Do not sort `git checkout`s completion
zstyle ":completion:*:git-checkout:*" sort false