diff options
author | Artturin <Artturin@artturin.com> | 2024-06-15 00:31:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-15 00:31:44 +0300 |
commit | c2780714638e11c037bbe2f2efdf27d2fe4e69e8 (patch) | |
tree | 329f8d2fc9cd085df8c0c58b4d0dc4c1ca1b9754 /pkgs/applications/version-management | |
parent | 89b5ffbe58edab884dbf1ee4fe6051e25a787113 (diff) | |
parent | be2f611e26db4b765811ea8c21880678f281e50c (diff) |
Merge pull request #295396 from sbatial/gix-completions
gitoxide: Add shell completions for ein
Diffstat (limited to 'pkgs/applications/version-management')
-rw-r--r-- | pkgs/applications/version-management/gitoxide/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/gitoxide/default.nix b/pkgs/applications/version-management/gitoxide/default.nix index 452c6f5ab2f57..c4ff74a860484 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.36.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. |