-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Bat as MANPAGER not working on termux #1517
Comments
While search for the "Unterminated quoted string" error message, I actually found this: termux/termux-packages#4781 😄 Same problem. Seems like termux uses a different man version that does not support complicated |
Thanks...I think this should be included either in README or we should write separate wiki for whole package. I am ready to help with this. |
Including it in the README sounds great. |
This is a workaround: man bash | col -bx | bat -p -l man You can keep whatever man() {
command man "$@" | eval ${MANPAGER}
} If you are like me and use many different environments, but keep your dotfiles in one place, you may wanna put this behind a test statement which probes for a termux environment, like so: if [[ -v TERMUX_VERSION ]]; then
man() {
command man "$@" | eval ${MANPAGER}
}
fi Hope that helps. |
What version of
bat
are you using?0.17.1
Describe the bug you encountered:
After setting Bat as MANPAGER, man command gives an error.
What did you expect to happen instead?
Show coloured output of man page.
How did you install
bat
pkg install bat
Environment
Termux 0.101 on Android 10 (Pie)
Architecture
aarch64
Screenshot
The text was updated successfully, but these errors were encountered: