From 6bc4c80c7db072a0d2d265eb3589bbe52e0d2737 Mon Sep 17 00:00:00 2001 From: Ahmed Wael <73046395+ahmedwael216@users.noreply.github.com> Date: Mon, 21 Aug 2023 19:07:28 +0300 Subject: [PATCH] fix(colored-man-pages): add env GROFF_NO_SGR=1 (#11831) --- plugins/colored-man-pages/colored-man-pages.plugin.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/colored-man-pages/colored-man-pages.plugin.zsh b/plugins/colored-man-pages/colored-man-pages.plugin.zsh index 981992d88..57facbb5c 100644 --- a/plugins/colored-man-pages/colored-man-pages.plugin.zsh +++ b/plugins/colored-man-pages/colored-man-pages.plugin.zsh @@ -36,6 +36,7 @@ function colored() { # Prefer `less` whenever available, since we specifically configured # environment for it. environment+=( PAGER="${commands[less]:-$PAGER}" ) + environment+=( GROFF_NO_SGR=1 ) # See ./nroff script. if [[ "$OSTYPE" = solaris* ]]; then