tldr: fix completion files for bash & zsh (#443339)

This commit is contained in:
dish
2025-09-18 03:03:34 +00:00
committed by GitHub
+2 -2
View File
@@ -45,8 +45,8 @@ python3Packages.buildPythonApplication rec {
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd tldr \
--bash <($out/bin/tldr --print-completion bash) \
--zsh <($out/bin/tldr --print-completion zsh)
--bash <($out/bin/tldr --print-completion bash | sed -E "s#\"/nix/store/[^\"]+/bin/python[^\"]*\" -m tldr#\"$out/bin/tldr\"#g") \
--zsh <($out/bin/tldr --print-completion zsh | sed -E "s#\"/nix/store/[^\"]+/bin/python[^\"]*\" -m tldr#\"$out/bin/tldr\"#g") \
'';
meta = {