Merge pull request #216797 from SuperSandro2000/mdcat-mdless

mdcat: add mdless symlink and install completions
This commit is contained in:
figsoda 2023-02-17 12:40:05 -05:00 committed by GitHub
commit 2abea38e08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,10 +42,14 @@ rustPlatform.buildRustPackage rec {
postInstall = ''
installManPage $releaseDir/build/mdcat-*/out/mdcat.1
installShellCompletion \
--bash $releaseDir/build/mdcat-*/out/completions/mdcat.bash \
--fish $releaseDir/build/mdcat-*/out/completions/mdcat.fish \
--zsh $releaseDir/build/mdcat-*/out/completions/_mdcat
ln -sr $out/bin/{mdcat,mdless}
for bin in mdcat mdless; do
installShellCompletion \
--bash $releaseDir/build/mdcat-*/out/completions/$bin.bash \
--fish $releaseDir/build/mdcat-*/out/completions/$bin.fish \
--zsh $releaseDir/build/mdcat-*/out/completions/_$bin
done
'';
meta = with lib; {