[zsh] diff colors by default

This commit is contained in:
Dmytro Meleshko 2019-08-25 21:45:10 +03:00
parent cc5dec6bdc
commit c020e75725

View file

@ -13,10 +13,7 @@ alias sudo='sudo '
alias cdd='dirs -v' alias cdd='dirs -v'
alias grep='grep --color=auto' alias grep='grep --color=auto'
alias diff='diff --color=auto'
if ! command_exists colordiff; then
alias colordiff='diff --color'
fi
# exa is a modern replacement for ls - https://the.exa.website/ # exa is a modern replacement for ls - https://the.exa.website/
if command_exists exa; then if command_exists exa; then
@ -24,7 +21,7 @@ if command_exists exa; then
alias lsa="${aliases[ls]} --all" alias lsa="${aliases[ls]} --all"
alias l="${aliases[ls]} --long --header --binary --group" alias l="${aliases[ls]} --long --header --binary --group"
alias la="${aliases[l]} --all" alias la="${aliases[l]} --all"
alias tree="exa -T" alias tree="${aliases[ls]} --tree"
else else
alias ls="ls --classify --group-directories-first --color=auto" alias ls="ls --classify --group-directories-first --color=auto"
alias lsa="${aliases[ls]} --almost-all" alias lsa="${aliases[ls]} --almost-all"