I like the output formatting of git diff. The color and the +/- representation of changes between lines is easier to read than GNU di
git diff
+
-
Place this in your .bashrc or .zshrc :
.bashrc
.zshrc
diff() { git diff --no-index "$1" "$2" | colordiff; }
requirments : git and colordiff should be installed before-hand.
git
colordiff
usage : diff file1 file2
diff file1 file2
example : for $diff .tmux.conf .zshrc.pre-oh-my-zsh
diff .tmux.conf .zshrc.pre-oh-my-zsh