Skip to content

Commit

Permalink
style(plugins/colored-man-pages): adjust styles
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Oct 2, 2024
1 parent 807bca0 commit 89c86b0
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions plugins/colored-man-pages/colored-man-pages.plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
# https://github.com/ohmyzsh/ohmyzsh/blob/6bc4c80c7db072a0d2d265eb3589bbe52e0d2737/plugins/colored-man-pages/colored-man-pages.plugin.zsh

# Adds the LESS_TERMCAP_* variables to color the man pages.
function colored() {
local -x LESS_TERMCAP_mb=${_omb_term_red}
local -x LESS_TERMCAP_md=${_omb_term_bold_red}
local -x LESS_TERMCAP_me=${_omb_term_reset}
local -x LESS_TERMCAP_so=${_omb_term_bold_yellow}
local -x LESS_TERMCAP_se=${_omb_term_reset}
local -x LESS_TERMCAP_us=${_omb_term_green}
local -x LESS_TERMCAP_ue=${_omb_term_reset}
function colored {
local -x LESS_TERMCAP_mb=$_omb_term_red
local -x LESS_TERMCAP_md=$_omb_term_bold_red
local -x LESS_TERMCAP_me=$_omb_term_reset
local -x LESS_TERMCAP_so=$_omb_term_bold_yellow
local -x LESS_TERMCAP_se=$_omb_term_reset
local -x LESS_TERMCAP_us=$_omb_term_green
local -x LESS_TERMCAP_ue=$_omb_term_reset

# Prefer `less` whenever available, since we specifically configured
# environment for it.
Expand All @@ -25,18 +25,18 @@ function colored() {

# Wrapper for man to colorize the output.
_omb_util_binary_exists man &&
function man {
colored "$FUNCNAME" "$@"
}
function man {
colored "$FUNCNAME" "$@"
}

# Wrapper for dman to colorize the output.
_omb_util_binary_exists dman &&
function dman {
colored "$FUNCNAME" "$@"
}
function dman {
colored "$FUNCNAME" "$@"
}

# Wrapper for debman to colorize the output.
_omb_util_binary_exists debman &&
function debman {
colored "$FUNCNAME" "$@"
}
function debman {
colored "$FUNCNAME" "$@"
}

0 comments on commit 89c86b0

Please sign in to comment.