Completion file shouldn't be sourced. It should provide only completion
code (source of _command) for command. It's task for package manager or
user to put under $fpath.
This will simply list the files in the current directory if there are no
auto-completion options available.
With this change, the zsh auto-completion will align with the functionality in
the bash auto-completion file provided.
New functionality: https://asciinema.org/a/EAYRIEVGTGNSS2gCGwSJ4Zw1i
Old functionality: https://asciinema.org/a/BfOZz4BHUGwjXMFptbmDHZocH
Signed-off-by: Ole Petter <ole.orhagen@northern.tech>
By setting the default value of PROG to the basname of whatever the
filename is, we allow bash_autocomplete to be copied into
/etc/bash_completion.d without modification.