Skip to content
Snippets Groups Projects
Commit 64efff51 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

feat: colorful man pages!

parent e965901a
No related branches found
No related tags found
No related merge requests found
...@@ -73,6 +73,16 @@ ...@@ -73,6 +73,16 @@
# custom bash prompt # custom bash prompt
source /etc/bash.promptrc source /etc/bash.promptrc
# make manpages colorful
# taken from https://www.tuxarena.com/2014/10/collection-of-useful-bash-functions-and-aliases/
export LESS_TERMCAP_mb=$(printf '\e[01;31m') # enter blinking mode – red
export LESS_TERMCAP_md=$(printf '\e[01;35m') # enter double-bright mode – bold, magenta
export LESS_TERMCAP_me=$(printf '\e[0m') # turn off all appearance modes (mb, md, so, us)
export LESS_TERMCAP_se=$(printf '\e[0m') # leave standout mode
export LESS_TERMCAP_so=$(printf '\e[01;33m') # enter standout mode – yellow
export LESS_TERMCAP_ue=$(printf '\e[0m') # leave underline mode
export LESS_TERMCAP_us=$(printf '\e[04;36m') # enter underline mode – cyan
# jump to HOME directory # jump to HOME directory
cd ~ cd ~
insertafter: EOF insertafter: EOF
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment