scala-cli: fix completions

This commit is contained in:
Jakub Kozłowski 2022-08-24 00:45:18 +02:00
parent eebaf0c7ee
commit c68dc2bf27

View file

@ -53,7 +53,9 @@ stdenv.mkDerivation {
'' + ''
# hack to ensure the completion function looks right
# as $0 is used to generate the compdef directive
PATH="$out/bin:$PATH"
mkdir temp
cp $out/bin/.scala-cli-wrapped temp/scala-cli
PATH="./temp:$PATH"
installShellCompletion --cmd scala-cli \
--bash <(scala-cli completions bash) \