]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - shell/shell/env
shell: add man wrapper to restore colored and searchable man pages
[config/dotfiles.git] / shell / shell / env
index 973e54fda6e0f6fbe9b7b681e8c802bca3dde754..6ad2475ebe602ed04ec26d2ad2f39c209dc034fe 100644 (file)
@@ -63,7 +63,8 @@ PAGER=less
 export PAGER
 
 escape=`printf '\033'`
-# Color man pages viewed with less, thanks to [1].
+# Color man pages viewed with less, thanks to [1]. Modern Groff versions (at
+# least in Debian) also need GROFF_NO_SGR=1 for this to work.
 #
 # [1]: http://nion.modprobe.de/blog/archives/572-less-colors-for-man-pages.html
 #
@@ -164,4 +165,9 @@ export GOPROXY
 GOSUMDB=off
 export GOSUMDB
 
+# Tell `ip -color` to use colors suitable for a dark terminal. Not sure if
+# this variable is also used by other programs.
+COLORFGBG=';0'
+export COLORFGBG
+
 # vim: ft=sh