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 pavement.py file, hitting paver <TAB> will list the available tasks.

Enjoy!

September 14, 2014
60 words


Categories
Tags
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.