X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=blobdiff_plain;f=shell%2Fshell%2Faliases.in;fp=shell%2Fshell%2Faliases.in;h=384d6e5a527098d9038e751e25ac0cd2ff8df09d;hp=a4db8bfee044f0856faa3238e26d00d252eb294e;hb=eb24896ada0cb363365354b29d3c743f204e3688;hpb=f3659d2db573444a34ff9dbd4136f71f009fca0a diff --git a/shell/shell/aliases.in b/shell/shell/aliases.in index a4db8bf..384d6e5 100644 --- a/shell/shell/aliases.in +++ b/shell/shell/aliases.in @@ -123,6 +123,14 @@ tree() { command tree -C "$@" | less -S } +# Modern Groff versions (at least on Debian) don't support LESS_TERMCAP_* to +# color man pages, set GROFF_NO_SGR as workaround. Also set LANG to C so that +# hyphens are not replaced with unicode making it impossible to search for +# options containg "-" or "--" in many man pages. +man() { + GROFF_NO_SGR=1 LANG=C command man "$@" +} + # Better viewer for info pages .. just pipe everything into less. info() { command info "$@" 2>/dev/null | less