mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-28 07:50:09 +08:00
lib: enable diff color (#8807)
This commit is contained in:
parent
d24a9dbccc
commit
62648d71bb
@ -39,6 +39,11 @@ if [[ "$DISABLE_LS_COLORS" != "true" ]]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# enable diff color if possible.
|
||||||
|
if diff --color . . &>/dev/null; then
|
||||||
|
alias diff='diff --color'
|
||||||
|
fi
|
||||||
|
|
||||||
setopt auto_cd
|
setopt auto_cd
|
||||||
setopt multios
|
setopt multios
|
||||||
setopt prompt_subst
|
setopt prompt_subst
|
||||||
|
Loading…
Reference in New Issue
Block a user