[Git-commits] [grml/grml-etc-core] 675c85: zshrc: support PAGER='less -Mr' usage and fall bac...
Michael Prokop
noreply at github.com
Fri Nov 15 17:48:08 CET 2019
Branch: refs/heads/master
Home: https://github.com/grml/grml-etc-core
Commit: 675c85b5e23d4eb5ce94b7aaf300f6847cd0af81
https://github.com/grml/grml-etc-core/commit/675c85b5e23d4eb5ce94b7aaf300f6847cd0af81
Author: Michael Prokop <mika at grml.org>
Date: 2019-11-14 (Thu, 14 Nov 2019)
Changed paths:
M etc/zsh/zshrc
Log Message:
-----------
zshrc: support PAGER='less -Mr' usage and fall back to vi if LESSOPEN is unset
It's horribly annoying when PAGER is set to less, but lesspipe isn't configured
via LESSOPEN, then `dchange $package` fails with less like this:
% dchange zsh
"/usr/share/doc/zsh/changelog.Debian.gz" may be a binary file. See it anyway?
vi(m) handles *.gz just fine, so let's try to use vi if PAGER is set to
less and LESSOPEN is unset.
While at it fix usage of ${PAGER} vs ${=PAGER} to also handle
a setting like PAGER='less -Mr' and PAGER=(less -Mr), otherwise
failing with `command not found: less -Mr`.
Thanks: AndrĂ¡s Korn for review and improvement suggestions
Commit: 7c81531c90c9fb23296f4d297bc2f4a0772793af
https://github.com/grml/grml-etc-core/commit/7c81531c90c9fb23296f4d297bc2f4a0772793af
Author: Michael Prokop <mika at grml.org>
Date: 2019-11-15 (Fri, 15 Nov 2019)
Changed paths:
M etc/zsh/zshrc
Log Message:
-----------
Merge remote-tracking branch 'origin/github/pr/87'
Compare: https://github.com/grml/grml-etc-core/compare/1be4f3ede299...7c81531c90c9
More information about the Git-commits
mailing list