mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
pdm: fix shell completions
This commit is contained in:
parent
53ddbd41e9
commit
3f65040107
@ -94,10 +94,12 @@ buildPythonApplication rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
installShellCompletion --cmd pdm \
|
export PDM_LOG_DIR=/tmp/pdm/log
|
||||||
--bash <($out/bin/pdm completion bash) \
|
$out/bin/pdm completion bash >pdm.bash
|
||||||
--fish <($out/bin/pdm completion fish) \
|
$out/bin/pdm completion fish >pdm.fish
|
||||||
--zsh <($out/bin/pdm completion zsh)
|
$out/bin/pdm completion zsh >pdm.zsh
|
||||||
|
installShellCompletion pdm.{bash,fish,zsh}
|
||||||
|
unset PDM_LOG_DIR
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
|
Loading…
Reference in New Issue
Block a user