summary refs log tree commit diff
path: root/pkgs/tools/backup/restic
diff options
context:
space:
mode:
authorUrban Skudnik <urban.skudnik@gmail.com>2018-09-05 03:36:56 +0200
committerUrban Skudnik <urban.skudnik@gmail.com>2018-09-05 03:36:56 +0200
commite9fe3a334bf0b4509358b9c5d9cc5d9fcd0b6d9c (patch)
treecdb0a225203ffed7790babf3888fcac44f845244 /pkgs/tools/backup/restic
parent956790acafd6852e3d7764184a4cb0a73790559c (diff)
downloadnixpkgs-e9fe3a334bf0b4509358b9c5d9cc5d9fcd0b6d9c.tar
nixpkgs-e9fe3a334bf0b4509358b9c5d9cc5d9fcd0b6d9c.tar.gz
nixpkgs-e9fe3a334bf0b4509358b9c5d9cc5d9fcd0b6d9c.tar.bz2
nixpkgs-e9fe3a334bf0b4509358b9c5d9cc5d9fcd0b6d9c.tar.lz
nixpkgs-e9fe3a334bf0b4509358b9c5d9cc5d9fcd0b6d9c.tar.xz
nixpkgs-e9fe3a334bf0b4509358b9c5d9cc5d9fcd0b6d9c.tar.zst
nixpkgs-e9fe3a334bf0b4509358b9c5d9cc5d9fcd0b6d9c.zip
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
Diffstat (limited to 'pkgs/tools/backup/restic')
-rw-r--r--pkgs/tools/backup/restic/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/backup/restic/default.nix b/pkgs/tools/backup/restic/default.nix
index feb7b480263..453e31f5d13 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
   '';