@angular/cli: install shell completions

This commit is contained in:
Tobias Langendorf 2024-07-15 21:39:55 +02:00
parent a0c86551ee
commit 3dfaa447a8

View File

@ -23,6 +23,13 @@ final: prev: {
prePatch = '' prePatch = ''
export NG_CLI_ANALYTICS=false export NG_CLI_ANALYTICS=false
''; '';
nativeBuildInputs = [ pkgs.installShellFiles ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
for shell in bash zsh; do
installShellCompletion --cmd ng \
--$shell <($out/bin/ng completion script)
done
'';
}; };
"@electron-forge/cli" = prev."@electron-forge/cli".override { "@electron-forge/cli" = prev."@electron-forge/cli".override {