Merge pull request #188101 from kubukoz/scala-cli-completions-fix

This commit is contained in:
Jakub Kozłowski 2022-08-24 17:33:40 +02:00 committed by GitHub
commit 22dbef924b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) \