abra zsh config 2.0
This commit is contained in:
@@ -6,16 +6,11 @@
|
||||
#
|
||||
|
||||
function diff {
|
||||
if zstyle -t ':prezto:module:utility:diff' color; then
|
||||
if (( $+commands[colordiff] )); then
|
||||
command diff --unified "$@" | colordiff --difftype diffu
|
||||
elif (( $+commands[git] )); then
|
||||
git --no-pager diff --color=auto --no-ext-diff --no-index "$@"
|
||||
else
|
||||
command diff --unified "$@"
|
||||
fi
|
||||
if zstyle -t ':prezto:module:utility:diff' color \
|
||||
&& (( $+commands[colordiff] )); then
|
||||
command colordiff "$@"
|
||||
else
|
||||
command diff --unified "$@"
|
||||
command diff "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user