restic: Fix autocomplete for zsh

zsh requires for files to be prepended with underscore to be
recognized as widgets, see [1] for more details.

[1] https://github.com/NixOS/nixpkgs/pull/46001#issuecomment-418567160
This commit is contained in:
Urban Skudnik 2018-09-05 03:36:56 +02:00
parent 956790acaf
commit e9fe3a334b
No known key found for this signature in database
GPG Key ID: 7D99AAABFE96E8AD

View File

@ -27,7 +27,7 @@ buildGoPackage rec {
cp restic $bin/bin/
$bin/bin/restic generate \
--bash-completion $bin/etc/bash_completion.d/restic.sh \
--zsh-completion $bin/share/zsh/vendor-completions/restic.sh \
--zsh-completion $bin/share/zsh/vendor-completions/_restic \
--man $bin/share/man/man1
'';