Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate pager commands for diff and PKGBUILD #1313

Open
windmueller opened this issue Jan 6, 2025 · 2 comments
Open

Separate pager commands for diff and PKGBUILD #1313

windmueller opened this issue Jan 6, 2025 · 2 comments

Comments

@windmueller
Copy link

After starting to use paru, I had some troubles configuring syntax highlighting for AUR packages. I managed to fix this using

[bin]
Pager = bat -l bash

in the config file. However, the bash language parameter is only useful when looking at a complete PKGBUILD. For inspecting a diff, the option -l diff would be much better.

If there is no other way to configure this, a separate pager option for PKGBUILD and diff output would be helpful.

Have you checked the readme and man page for this feature?

Yes, the string "diff" does not show up in the README at all and the manpage of the config file only mentions the single command.

Have you checked previous issues for this feature?

Yes. If my search strings were not good enough, please point me to the correct issue.

@Morganamilo
Copy link
Owner

Paru use bat to do it's own syntax highlighting. You should be fine to just not set the pager and also make sure color is enabled in pacman.conf.

@windmueller
Copy link
Author

Paru use bat to do it's own syntax highlighting.

Well, not for me. I checked the ps tree, paru opens less instead of bat.

You should be fine to just not set the pager and also make sure color is enabled in pacman.conf.

Ah, the Color option did the trick. I did not expect it to have any impact on the PKGBUILD diff. However, paru still opens less instead of bat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants