Skip to content

Commit 90f7463

Browse files
author
Osman Baskaya
committed
diff-so-fancy
1 parent 8b378c1 commit 90f7463

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

installation.sh

+17
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,20 @@ cp byobu.tmux.conf ~/.byobu/tmux.conf
3030
mkdir -p $HOME/.config/byobu/
3131
cp byobu.tmux.conf $HOME/.config/byobu/.tmux.conf
3232
set -e
33+
34+
# Git diff setup
35+
brew install diff-so-fancy
36+
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
37+
git config --global color.ui true
38+
39+
git config --global color.diff-highlight.oldNormal "red bold"
40+
git config --global color.diff-highlight.oldHighlight "red bold 52"
41+
git config --global color.diff-highlight.newNormal "green bold"
42+
git config --global color.diff-highlight.newHighlight "green bold 22"
43+
44+
git config --global color.diff.meta "11"
45+
git config --global color.diff.frag "magenta bold"
46+
git config --global color.diff.commit "yellow bold"
47+
git config --global color.diff.old "red bold"
48+
git config --global color.diff.new "green bold"
49+
git config --global color.diff.whitespace "red reverse"

0 commit comments

Comments
 (0)