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.
This commit is contained in:
parent
e6f8b6b897
commit
cda51a8a05
@ -20,6 +20,16 @@ buildGoPackage rec {
|
|||||||
gnupg
|
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 = ''
|
postFixup = ''
|
||||||
wrapProgram $bin/bin/gopass \
|
wrapProgram $bin/bin/gopass \
|
||||||
--prefix PATH : "${wrapperPath}"
|
--prefix PATH : "${wrapperPath}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user