Shell completions

This commit is contained in:
Nox Sluijtman 2025-07-02 23:07:43 +02:00
parent c21072727c
commit 49f7746f57
Signed by: Egg
SSH key fingerprint: SHA256:2sG9X3C7Xvq2svGumz1/k7cm8l4G9+qAtAeugqB4J9M
6 changed files with 219 additions and 86 deletions

View file

@ -23,10 +23,24 @@
src = ./.;
nativeBuildInputs = with pkgs; [
libnotify
installShellFiles
];
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath nativeBuildInputs;
RUST_SRC_PATH = pkgs.rustPlatform.rustLibSrc;
postInstall =
with pkgs;
lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
# installShellCompletion --cmd noise \
# --bash <($out/bin/fd --generate-completions bash) \
# --fish <($out/bin/fd --generate-completions fish)
# installShellCompletion --zsh contrib/completion/_fd
installShellCompletion --cmd noise \
--bash <($out/bin/noise --generate-completions bash) \
--zsh <($out/bin/noise --generate-completions zsh) \
--fish <($out/bin/noise --generate-completions fish)
'';
};
devShell =
with pkgs;