diff options
author | Michishige Kaito <me@mkaito.com> | 2018-04-10 11:16:56 +0100 |
---|---|---|
committer | Michishige Kaito <me@mkaito.com> | 2018-04-10 11:16:56 +0100 |
commit | cda51a8a054637142caa954d639fa46ca8c1b3b2 (patch) | |
tree | 093c9d3f0d4f7df4f0c52c5851efbce7164a196f /pkgs/tools/security/gopass | |
parent | e6f8b6b897fe99a70b8db45bf111f389423b146e (diff) |
gopass: Install shell completion scripts
Shell completion needs to be generated by the `gopass` binary, and moved into place for each of the supported shells.
Diffstat (limited to 'pkgs/tools/security/gopass')
-rw-r--r-- | pkgs/tools/security/gopass/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/tools/security/gopass/default.nix b/pkgs/tools/security/gopass/default.nix index db58c6011f073..743f9136ae538 100644 --- a/pkgs/tools/security/gopass/default.nix +++ b/pkgs/tools/security/gopass/default.nix @@ -20,6 +20,16 @@ buildGoPackage rec { gnupg ]); + postInstall = '' + mkdir -p \ + $bin/share/bash-completion/completions \ + $bin/share/zsh/site-functions \ + $bin/share/fish/vendor_completions.d + $bin/bin/gopass completion bash > $bin/share/bash-completion/completions/_gopass + $bin/bin/gopass completion zsh > $bin/share/zsh/site-functions/_gopass + $bin/bin/gopass completion fish > $bin/share/fish/vendor_completions.d/gopass.fish + ''; + postFixup = '' wrapProgram $bin/bin/gopass \ --prefix PATH : "${wrapperPath}" |