mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[zsh] diff colors by default
This commit is contained in:
parent
cc5dec6bdc
commit
c020e75725
1 changed files with 2 additions and 5 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue