From e9fe3a334bf0b4509358b9c5d9cc5d9fcd0b6d9c Mon Sep 17 00:00:00 2001 From: Urban Skudnik Date: Wed, 5 Sep 2018 03:36:56 +0200 Subject: [PATCH] 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 --- pkgs/tools/backup/restic/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/backup/restic/default.nix b/pkgs/tools/backup/restic/default.nix index feb7b4802630..453e31f5d13a 100644 --- a/pkgs/tools/backup/restic/default.nix +++ b/pkgs/tools/backup/restic/default.nix @@ -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 '';