Pipe zsh auto completion list to file or less

autocompletezsh

zsh: do you wish to see all 923 possibilities (462 lines)?

Yes please, but in a file or less.

Best Answer

zsh can do this internally. Put this into your .zshrc:

zstyle ':completion:*' list-prompt   ''
zstyle ':completion:*' select-prompt ''

before

autoload -Uz compinit
compinit

(add the latter lines if not already present)

See the zsh documentation for details.

Related Question