[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
it-tricks [2017/10/17 09:04]
ufal [Other]
it-tricks [2017/10/17 09:16]
belohlavek [Bash]
Line 43: Line 43:
         command grep "$@" ~/.history-all-$USER | tail -n 30         command grep "$@" ~/.history-all-$USER | tail -n 30
     fi     fi
 +}
 +</code>
 +
 +==== Colorful manpages ====
 +Add this to your .bashrc (tested on .zshrc). Colors can be easily customized.
 +
 +<code>
 +man () {
 +        env LESS_TERMCAP_mb=$'\E[01;31m' \
 +        LESS_TERMCAP_md=$'\E[01;38;5;74m' \
 +        LESS_TERMCAP_me=$'\E[0m' \
 +        LESS_TERMCAP_se=$'\E[0m' \
 +        LESS_TERMCAP_so=$'\E[38;5;246m' \
 +        LESS_TERMCAP_ue=$'\E[0m' \
 +        LESS_TERMCAP_us=$'\E[04;38;5;146m' \
 +        man "$@"
 } }
 </code> </code>

[ Back to the navigation ] [ Back to the content ]