浏览代码

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

Ahmed Wael 8 月之前
父节点
当前提交
6bc4c80c7d
共有 1 个文件被更改,包括 1 次插入0 次删除
  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