Skip to content

Commit 8084cbb

Browse files
authored
Merge pull request #2338 from Bash-it/feature/fix-man-plugin
2 parents 0c660a3 + a6a320d commit 8084cbb

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

plugins/available/man.plugin.bash

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
# shellcheck shell=bash
22
about-plugin 'colorize man pages for better readability'
33

4-
: "${LESS_TERMCAP_mb:=$'\e[1;32m'}"
5-
: "${LESS_TERMCAP_md:=$'\e[1;32m'}"
6-
: "${LESS_TERMCAP_me:=$'\e[0m'}"
7-
: "${LESS_TERMCAP_se:=$'\e[0m'}"
8-
: "${LESS_TERMCAP_so:=$'\e[01;33m'}"
9-
: "${LESS_TERMCAP_ue:=$'\e[0m'}"
10-
: "${LESS_TERMCAP_us:=$'\e[1;4;31m'}"
11-
12-
: "${LESS:=}"
13-
export "${!LESS_TERMCAP@}"
14-
export LESS="--RAW-CONTROL-CHARS ${LESS}"
4+
alias man="\
5+
LESS_TERMCAP_mb=$'\e[1;32m' \
6+
LESS_TERMCAP_md=$'\e[1;32m' LESS_TERMCAP_me=$'\e[0m' \
7+
LESS_TERMCAP_se=$'\e[0m' LESS_TERMCAP_so=$'\e[01;33m' \
8+
LESS_TERMCAP_ue=$'\e[0m' LESS_TERMCAP_us=$'\e[1;4;31m' \
9+
LESS=--RAW-CONTROL-CHARS \man"

0 commit comments

Comments
 (0)