From 5a349ef25fab08332e989ba6d58a325a481ad751 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Wed, 24 Jun 2020 07:24:32 +0200 Subject: [PATCH] updated stuff --- zsh/plgs/colorman.zsh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 zsh/plgs/colorman.zsh diff --git a/zsh/plgs/colorman.zsh b/zsh/plgs/colorman.zsh new file mode 100644 index 0000000..aafd5d6 --- /dev/null +++ b/zsh/plgs/colorman.zsh @@ -0,0 +1,18 @@ +function colored() { + command env \ + LESS_TERMCAP_mb=$(printf "\e[1;31m") \ + LESS_TERMCAP_md=$(printf "\e[1;31m") \ + LESS_TERMCAP_me=$(printf "\e[0m") \ + LESS_TERMCAP_se=$(printf "\e[0m") \ + LESS_TERMCAP_so=$(printf "\e[1;44;33m") \ + LESS_TERMCAP_ue=$(printf "\e[0m") \ + LESS_TERMCAP_us=$(printf "\e[1;32m") \ + PAGER="${commands[less]:-$PAGER}" \ + _NROFF_U=1 \ + PATH="$HOME/bin:$PATH" "$@" +} + +# Colorize man and dman/debman (from debian-goodies) +function man dman debman { + colored $0 "$@" +}