diff options
author | ache <ache@ache.one> | 2017-06-01 18:17:36 +0200 |
---|---|---|
committer | ache <ache@ache.one> | 2017-06-01 18:17:36 +0200 |
commit | d99af1cd72b3cd093964e4565785fab563379253 (patch) | |
tree | 36920a8dfeea33bde747c8a34c903a1bf41f79b8 /functions/man.fish |
Init config
Diffstat (limited to 'functions/man.fish')
-rw-r--r-- | functions/man.fish | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/functions/man.fish b/functions/man.fish new file mode 100644 index 0000000..33eab3e --- /dev/null +++ b/functions/man.fish @@ -0,0 +1,10 @@ +function man --description "wrap the 'man' manual page opener to use color in formatting" + set -x LESS_TERMCAP_mb (printf "\033[01;31m") + set -x LESS_TERMCAP_md (printf "\033[01;31m") + set -x LESS_TERMCAP_me (printf "\033[0m") + set -x LESS_TERMCAP_se (printf "\033[0m") + set -x LESS_TERMCAP_so (printf "\033[01;44;33m") + set -x LESS_TERMCAP_ue (printf "\033[0m") + set -x LESS_TERMCAP_us (printf "\033[01;32m") + env man $argv +end |