Add Bash completion
authorbep <bjorn.erik.pedersen@gmail.com>
Sat, 16 May 2015 16:04:56 +0000 (18:04 +0200)
committerbep <bjorn.erik.pedersen@gmail.com>
Sat, 16 May 2015 16:04:59 +0000 (18:04 +0200)
commitbe9224d72085da7df119769f671c70a6ab854cbb
tree65d587d54274fcf4e5fe6c9934fb71643d0d5ae4
parent84f4c21d4a0a86f4e82c5bdd7de6fc96997dcc30
Add Bash completion

Add a new command, genautocomplete, wich generates a Bash completion script (zsh and others later).

The script is by default written to `/etc/bash_completion.d/hugo.sh`; this can be set in `--completionfile=/some/file`.

Fixes #438
commands/genautocomplete.go [new file with mode: 0644]
commands/hugo.go