Browse Source

Add 'man' function

Andrea Miglietta 7 years ago
parent
commit
8c7bb4b139
1 changed files with 13 additions and 0 deletions
  1. 13 0
      .bash_functions

+ 13 - 0
.bash_functions

@@ -11,3 +11,16 @@ history() {
     builtin history "$@"
 }
 
+man() {
+    env MANWIDTH=95 \
+    LESS_TERMCAP_mb="$(tput bold; tput setaf 1)" \
+    LESS_TERMCAP_md="$(tput bold; tput setaf 32)" \
+    LESS_TERMCAP_me="$(tput sgr0)" \
+    LESS_TERMCAP_se="$(tput sgr0)" \
+    LESS_TERMCAP_so="$(tput bold; tput setaf 220)" \
+    LESS_TERMCAP_ue="$(tput sgr0)" \
+    LESS_TERMCAP_us="$(tput smul; tput bold; tput setaf 37)" \
+    man "$@"
+}
+
+