Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add colored man plugin.

  • Loading branch information...
commit af8d8df36cee517c55449e6aaeaa2f60a94ac9f8 1 parent b8b241f
KokaKiwi authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 plugins/colored-man/colored-man.plugin.zsh
View
11 plugins/colored-man/colored-man.plugin.zsh
@@ -0,0 +1,11 @@
+man() {
+ 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") \
+ man "$@"
+}
Please sign in to comment.
Something went wrong with that request. Please try again.