We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05127cf commit 6fcc91aCopy full SHA for 6fcc91a
plugins/available/man.plugin.bash
@@ -1,12 +1,14 @@
1
cite about-plugin
2
about-plugin 'colorize man pages for better readability'
3
4
-export LESS_TERMCAP_mb=$'\e[1;32m'
5
-export LESS_TERMCAP_md=$'\e[1;32m'
6
-export LESS_TERMCAP_me=$'\e[0m'
7
-export LESS_TERMCAP_se=$'\e[0m'
8
-export LESS_TERMCAP_so=$'\e[01;33m'
9
-export LESS_TERMCAP_ue=$'\e[0m'
10
-export LESS_TERMCAP_us=$'\e[1;4;31m'
+: "${LESS_TERMCAP_mb:=$'\e[1;32m'}"
+: "${LESS_TERMCAP_md:=$'\e[1;32m'}"
+: "${LESS_TERMCAP_me:=$'\e[0m'}"
+: "${LESS_TERMCAP_se:=$'\e[0m'}"
+: "${LESS_TERMCAP_so:=$'\e[01;33m'}"
+: "${LESS_TERMCAP_ue:=$'\e[0m'}"
+: "${LESS_TERMCAP_us:=$'\e[1;4;31m'}"
11
+
12
+export "${!LESS_TERMCAP@}"
13
14
export LESS="R${LESS#-}"
0 commit comments