Skip to content

Commit

Permalink
colored_man_pages: Declare functions only if exist
Browse files Browse the repository at this point in the history
  • Loading branch information
RobLoach committed Oct 2, 2024
1 parent e8f4457 commit 132712c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/colored-man-pages/colored-man-pages.plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,19 @@ function colored() {
}

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

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

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

0 comments on commit 132712c

Please sign in to comment.