Autocomplete paver with zsh
How to setup zsh so that it autocompletes paver

Here is a quick way to have autocompletion of paver tasks on zsh. Just add these lines to your .zshrc file:

_paver_tasks () {
    reply=( $(paver help | awk '/^  ([a-zA-Z_]+).+-/{print $1}') )
compctl -K _paver_tasks paver

Then, at a zsh prompt, if in a directory containing a file, hitting paver <TAB> will list the available tasks.


September 14, 2014
60 words

paver zsh

Contact me

Hi! I'm Lorenzo Bolla, Senior Software Architect in London, UK.

When I'm not programming in Python, Elixir, Go or Haskell, I am playing either basketball, piano or chess.