Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
62648d71
Unverified
Commit
62648d71
authored
Jul 02, 2020
by
Monson Shao
Committed by
GitHub
Jul 01, 2020
Browse files
lib: enable diff color (#8807)
parent
d24a9dbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/theme-and-appearance.zsh
View file @
62648d71
...
...
@@ -39,6 +39,11 @@ if [[ "$DISABLE_LS_COLORS" != "true" ]]; then
fi
fi
# enable diff color if possible.
if
diff
--color
.
.
&>/dev/null
;
then
alias
diff
=
'diff --color'
fi
setopt auto_cd
setopt multios
setopt prompt_subst
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment