diff options
author | kilianar <mail@kilianar.de> | 2022-11-17 14:11:00 +0100 |
---|---|---|
committer | kilianar <mail@kilianar.de> | 2022-11-17 14:11:00 +0100 |
commit | 2fcba75c19b9bae8f99b9d9eca43243571a8bf33 (patch) | |
tree | c25c6220bed2e512c5e988fd3a97eae7e72ea888 /pkgs/tools/misc/onefetch | |
parent | 6c4166ccb9a468b5423859110a9a0aa29840fcab (diff) | |
download | nixpkgs-2fcba75c19b9bae8f99b9d9eca43243571a8bf33.tar nixpkgs-2fcba75c19b9bae8f99b9d9eca43243571a8bf33.tar.gz nixpkgs-2fcba75c19b9bae8f99b9d9eca43243571a8bf33.tar.bz2 nixpkgs-2fcba75c19b9bae8f99b9d9eca43243571a8bf33.tar.lz nixpkgs-2fcba75c19b9bae8f99b9d9eca43243571a8bf33.tar.xz nixpkgs-2fcba75c19b9bae8f99b9d9eca43243571a8bf33.tar.zst nixpkgs-2fcba75c19b9bae8f99b9d9eca43243571a8bf33.zip |
onefetch: install shell completions
Diffstat (limited to 'pkgs/tools/misc/onefetch')
-rw-r--r-- | pkgs/tools/misc/onefetch/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/tools/misc/onefetch/default.nix b/pkgs/tools/misc/onefetch/default.nix index 1792dd588f0..d4cc9f08f1a 100644 --- a/pkgs/tools/misc/onefetch/default.nix +++ b/pkgs/tools/misc/onefetch/default.nix @@ -9,6 +9,7 @@ , libresolv , Security , git +, installShellFiles }: rustPlatform.buildRustPackage rec { @@ -29,7 +30,7 @@ rustPlatform.buildRustPackage rec { ./zstd-pkg-config.patch ]; - nativeBuildInputs = [ cmake pkg-config ]; + nativeBuildInputs = [ cmake installShellFiles pkg-config ]; buildInputs = [ zstd ] ++ lib.optionals stdenv.isDarwin [ CoreFoundation libresolv Security ]; @@ -45,6 +46,13 @@ rustPlatform.buildRustPackage rec { git commit -m test ''; + postInstall = '' + installShellCompletion --cmd onefetch \ + --bash <($out/bin/onefetch --generate bash) \ + --fish <($out/bin/onefetch --generate fish) \ + --zsh <($out/bin/onefetch --generate zsh) + ''; + meta = with lib; { description = "Git repository summary on your terminal"; homepage = "https://github.com/o2sh/onefetch"; |