Unverified Commit 062776a8 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

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

pdm: fix shell completions
parents 578ef6fe 3f650401
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -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 = [