From be2f611e26db4b765811ea8c21880678f281e50c Mon Sep 17 00:00:00 2001 From: sbatial Date: Fri, 8 Mar 2024 04:03:59 +0100 Subject: [PATCH] gitoxide: Add shell completions for ein --- pkgs/applications/version-management/gitoxide/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/version-management/gitoxide/default.nix b/pkgs/applications/version-management/gitoxide/default.nix index ecadfb5d13cd..6558f4d4cd16 100644 --- a/pkgs/applications/version-management/gitoxide/default.nix +++ b/pkgs/applications/version-management/gitoxide/default.nix @@ -16,6 +16,7 @@ let canRunCmd = stdenv.hostPlatform.emulatorAvailable buildPackages; gix = "${stdenv.hostPlatform.emulator buildPackages} $out/bin/gix"; + ein = "${stdenv.hostPlatform.emulator buildPackages} $out/bin/ein"; in rustPlatform.buildRustPackage rec { pname = "gitoxide"; version = "0.34.0"; @@ -40,6 +41,11 @@ in rustPlatform.buildRustPackage rec { --bash <(${gix} completions --shell bash) \ --fish <(${gix} completions --shell fish) \ --zsh <(${gix} completions --shell zsh) + + installShellCompletion --cmd ein \ + --bash <(${ein} completions --shell bash) \ + --fish <(${ein} completions --shell fish) \ + --zsh <(${ein} completions --shell zsh) ''; # Needed to get openssl-sys to use pkg-config.