From 17061dfd8db33cea687816b26db0b2fc3bc92404 Mon Sep 17 00:00:00 2001 From: meliurwen Date: Mon, 11 Sep 2023 00:21:44 +0200 Subject: [PATCH] zshrc: fixed color display issues in `man` pages due to changes in `groff` version 1.23.0 --- zsh/.zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zsh/.zshrc b/zsh/.zshrc index e1bb421..f85513c 100644 --- a/zsh/.zshrc +++ b/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 "$@" }