atuin: simplify completion generation
This commit is contained in:
parent
f893eecfe8
commit
c480fadd4b
|
@ -26,15 +26,10 @@ rustPlatform.buildRustPackage rec {
|
||||||
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security SystemConfiguration ];
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security SystemConfiguration ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
HOME=$(mktemp -d)
|
|
||||||
for shell in bash fish zsh; do
|
|
||||||
$out/bin/atuin gen-completions -s $shell -o .
|
|
||||||
done
|
|
||||||
|
|
||||||
installShellCompletion --cmd atuin \
|
installShellCompletion --cmd atuin \
|
||||||
--bash atuin.bash \
|
--bash <($out/bin/atuin gen-completions -s bash) \
|
||||||
--fish atuin.fish \
|
--fish <($out/bin/atuin gen-completions -s fish) \
|
||||||
--zsh _atuin
|
--zsh <($out/bin/atuin gen-completions -s zsh)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue