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