Browse Source

fix(colored-man-pages): add env GROFF_NO_SGR=1 (#11831)

Ahmed Wael 8 months ago
parent
commit
6bc4c80c7d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      plugins/colored-man-pages/colored-man-pages.plugin.zsh

+ 1 - 0
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