Shell completions
This commit is contained in:
parent
c21072727c
commit
49f7746f57
6 changed files with 219 additions and 86 deletions
14
flake.nix
14
flake.nix
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue