Ver código fonte

colored output of man pages

pull/1/head
10sr 11 anos atrás
pai
commit
1a856cd3f1
1 arquivos alterados com 12 adições e 0 exclusões
  1. +12
    -0
      bashrc

+ 12
- 0
bashrc Ver arquivo

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

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(){
_tformat="%Y%m%d-%H%M%S%z"
_file=`date +${_tformat}`.script


Carregando…
Cancelar
Salvar