aboutsummaryrefslogtreecommitdiff
path: root/fish/.config/fish/functions/man.fish
diff options
context:
space:
mode:
Diffstat (limited to 'fish/.config/fish/functions/man.fish')
-rw-r--r--fish/.config/fish/functions/man.fish6
1 files changed, 6 insertions, 0 deletions
diff --git a/fish/.config/fish/functions/man.fish b/fish/.config/fish/functions/man.fish
new file mode 100644
index 0000000..0059a73
--- /dev/null
+++ b/fish/.config/fish/functions/man.fish
@@ -0,0 +1,6 @@
+function man --description "colored man"
+ set -x LESS_TERMCAP_md (printf "\e[1;32m")
+ set -x LESS_TERMCAP_me (printf "\e[0m")
+
+ env man $argv
+end