Merge pull request #303871 from maxbrunet/fix/pdm/completions

pdm: fix shell completions
This commit is contained in:
OTABI Tomoya 2024-04-28 11:07:40 +09:00 committed by GitHub
commit 062776a815
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -94,10 +94,12 @@ buildPythonApplication rec {
'';
postInstall = ''
installShellCompletion --cmd pdm \
--bash <($out/bin/pdm completion bash) \
--fish <($out/bin/pdm completion fish) \
--zsh <($out/bin/pdm completion zsh)
export PDM_LOG_DIR=/tmp/pdm/log
$out/bin/pdm completion bash >pdm.bash
$out/bin/pdm completion fish >pdm.fish
$out/bin/pdm completion zsh >pdm.zsh
installShellCompletion pdm.{bash,fish,zsh}
unset PDM_LOG_DIR
'';
nativeCheckInputs = [