Bashrc.wiki: removed code from colored man pages section. Just read the source
This commit is contained in:
parent
8358ee29a0
commit
231d8a5dbd
18
Bashrc.wiki
18
Bashrc.wiki
|
@ -90,23 +90,9 @@ Most of these are simple creature comforts and are commented with sufficient exp
|
|||
|
||||
https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/colored-man-pages.bash
|
||||
|
||||
Some color changes in `man` are almost essential for readability for me, so here's how I achieve that:
|
||||
Some color changes in `man` are almost essential for readability for me, so I define my own.
|
||||
|
||||
{{{class="prettyprint"
|
||||
# Enables colored Man pages:
|
||||
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 "$@"
|
||||
}
|
||||
}}}
|
||||
|
||||
This can also be done for any similar program that uses `less` as its pager.
|
||||
This can be replicated for any similar program that uses `less` as its pager.
|
||||
|
||||
----
|
||||
|
||||
|
|
Loading…
Reference in New Issue