Browse Source

colored output of man pages

pull/1/head
10sr 12 years ago
parent
commit
1a856cd3f1
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      bashrc

+ 12
- 0
bashrc View File

@@ -213,6 +213,18 @@ fi


alias setup.py="sudo python3 setup.py install --record files.txt" alias setup.py="sudo python3 setup.py install --record files.txt"


man() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;35m") \
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") \
command man "$@"
}

scr(){ scr(){
_tformat="%Y%m%d-%H%M%S%z" _tformat="%Y%m%d-%H%M%S%z"
_file=`date +${_tformat}`.script _file=`date +${_tformat}`.script


Loading…
Cancel
Save