6bc4c80c7db072a0d2d265eb3589bbe52e0d2737
- Author
- Ahmed Wael <73046395+ahmedwael216@users.noreply.github.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
fix(colored-man-pages): add env GROFF_NO_SGR=1 (#11831)
Diff
1diff --git a/plugins/colored-man-pages/colored-man-pages.plugin.zsh b/plugins/colored-man-pages/colored-man-pages.plugin.zsh
2index 981992d88e01a9f6484a25b80955bb36590047c8..57facbb5c35c4653530da7a69b28580721788aef 100644
3--- a/plugins/colored-man-pages/colored-man-pages.plugin.zsh
4+++ b/plugins/colored-man-pages/colored-man-pages.plugin.zsh
5@@ -36,6 +36,7 @@ function colored() {
6 # Prefer `less` whenever available, since we specifically configured
7 # environment for it.
8 environment+=( PAGER="${commands[less]:-$PAGER}" )
9+ environment+=( GROFF_NO_SGR=1 )
10
11 # See ./nroff script.
12 if [[ "$OSTYPE" = solaris* ]]; then