zshrc: fixed color display issues in `man` pages due to changes in `groff` version 1.23.0

master
Meliurwen 1 year ago
parent cd02ccd747
commit 17061dfd8d
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 5
      zsh/.zshrc

@ -210,6 +210,10 @@ autoload -U +X bashcompinit && bashcompinit
# See:
# - https://boredzo.org/blog/archives/2016-08-15/colorized-man-pages-understood-and-customized
# - https://unix.stackexchange.com/a/600214
# - Since mid 2023 this is needed on Debian sid (and probably other distros too):
# - https://stackoverflow.com/a/32456403
# - https://bbs.archlinux.org/viewtopic.php?pid=2113876#p2113876
# - https://savannah.gnu.org/bugs/?func=detailitem&item_id=63583
# Careful with "" char, it may appear as "^[" in some text editors!
man() {
env \
@ -220,6 +224,7 @@ man() {
LESS_TERMCAP_so="" \
LESS_TERMCAP_ue="" \
LESS_TERMCAP_us="" \
MANROFFOPT=-c \
man "$@"
}

Loading…
Cancel
Save