From 1f06ce0269b31c791ef2eaa478501842a126518a Mon Sep 17 00:00:00 2001 From: Pearu Vaalma Date: Tue, 11 Aug 2020 19:36:42 +0300 Subject: [PATCH] Add colouring aliases --- zsh/.zshrc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/zsh/.zshrc b/zsh/.zshrc index dcdcf38..b27a84f 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -13,3 +13,16 @@ eval $(thefuck --alias) export SSH_AUTH_SOCK=/run/user/1000/gnupg/S.gpg-agent.ssh +alias diff='diff --color=auto' +alias grep='grep --color=auto' +alias ip='ip --color=auto' + +export LESS=-R +export LESS_TERMCAP_mb=$'\E[1;31m' # begin blink +export LESS_TERMCAP_md=$'\E[1;36m' # begin bold +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 +