diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 15014c5..fa88b99 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -31,6 +31,7 @@ bindkey -e alias ls='ls --color=auto' alias ll='ls -lh' alias grep='grep --color=auto' +alias diff='diff --color=auto' alias gvim='gvim --remote-tab' alias userctl='systemctl --user' alias :q='exit' @@ -41,6 +42,17 @@ then alias fuck='$(thefuck $(fc -ln -1))' fi +# Colored man output +man() { + LESS_TERMCAP_md=$'\e[01;36m' \ + 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;33m' \ + command man "$@" +} + # Initialize the prompt source "${ZDOTDIR:-$HOME}/.zshtheme"