From 3631850af8fcd3f8b492816032f2ab6961c9cf96 Mon Sep 17 00:00:00 2001 From: dbroqua Date: Sun, 23 Jul 2017 12:28:18 +0200 Subject: [PATCH] - Added some alias for coloration --- zshrc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/zshrc b/zshrc index 2384ad1..86407de 100644 --- a/zshrc +++ b/zshrc @@ -56,6 +56,24 @@ source $ZSH/oh-my-zsh.sh # export LANG=en_US.UTF-8 export EDITOR='vim' +export LESS=-R +export LESS_TERMCAP_mb=$'\E[1;31m' # begin bold +export LESS_TERMCAP_md=$'\E[1;36m' # begin blink +export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink +export LESS_TERMCAP_so=$'\E[01;44;33m' # begin reverse video +export LESS_TERMCAP_se=$'\E[0m' # reset reverse video +export LESS_TERMCAP_us=$'\E[1;32m' # begin underline +export LESS_TERMCAP_ue=$'\E[0m' # reset underline + +man() { + LESS_TERMCAP_md=$'\e[01;31m' \ + LESS_TERMCAP_me=$'\e[0m' \ + LESS_TERMCAP_se=$'\e[0m' \ + LESS_TERMCAP_so=$'\e[01;44;33m' \ + LESS_TERMCAP_ue=$'\e[0m' \ + LESS_TERMCAP_us=$'\e[01;32m' \ + command man "$@" +} alias ls="ls --color=auto" alias mv="mv -v" @@ -64,6 +82,9 @@ alias ll="ls -l" alias llh="ls -lh" alias grep="grep --color=auto -n" alias xres="xrdb ~/.Xresources" +alias diff='diff --color=auto' + + # Battery Remaining