tldr: fix completion files for bash & zsh

This commit is contained in:
circuit
2025-09-16 09:06:54 +03:30
parent fd6c07a083
commit 6af380e5b4
+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 = {