deno: move to new installShellCompletion style
This commit is contained in:
parent
e50d10b4aa
commit
24ff3949b0
1 changed files with 4 additions and 5 deletions
|
@ -52,15 +52,14 @@ rustPlatform.buildRustPackage rec {
|
|||
# Skipping until resolved
|
||||
doCheck = false;
|
||||
|
||||
# TODO: Move to enhanced installShellCompletion when merged: PR #83630
|
||||
postInstall = ''
|
||||
# remove test plugin and test server
|
||||
rm -rf $out/lib $out/bin/test_server
|
||||
|
||||
$out/bin/deno completions bash > deno.bash
|
||||
$out/bin/deno completions fish > deno.fish
|
||||
$out/bin/deno completions zsh > _deno
|
||||
installShellCompletion deno.{bash,fish} --zsh _deno
|
||||
installShellCompletion --cmd deno \
|
||||
--bash <($out/bin/deno completions bash) \
|
||||
--fish <($out/bin/deno completions fish) \
|
||||
--zsh <($out/bin/deno completions zsh)
|
||||
'';
|
||||
|
||||
passthru.updateScript = ./update/update.ts;
|
||||
|
|
Loading…
Reference in a new issue