-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2009 from gaelicWizard/plugin-man
Plugin/man: Add `R` to `$LESS`
- Loading branch information
Showing
2 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
cite about-plugin | ||
# shellcheck shell=bash | ||
about-plugin 'colorize man pages for better readability' | ||
|
||
export LESS_TERMCAP_mb=$'\e[1;32m' | ||
export LESS_TERMCAP_md=$'\e[1;32m' | ||
export LESS_TERMCAP_me=$'\e[0m' | ||
export LESS_TERMCAP_se=$'\e[0m' | ||
export LESS_TERMCAP_so=$'\e[01;33m' | ||
export LESS_TERMCAP_ue=$'\e[0m' | ||
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'}" | ||
|
||
: "${LESS:=}" | ||
export "${!LESS_TERMCAP@}" | ||
export LESS="R${LESS#-}" |