mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:21:57 +03:00
Merge pull request #38678 from mkaito/gopass-completion
gopass: Install shell completion scripts
This commit is contained in:
commit
86fc330684
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user