mirror of
https://github.com/zdharma-continuum/zsh-diff-so-fancy.git
synced 2026-09-10 07:16:24 -04:00
12 lines
226 B
Bash
Executable file
12 lines
226 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Git will search $PATH for this file, when invoked by "git dsf ...".
|
|
|
|
f() {
|
|
[ -z "$GIT_PREFIX" ] \
|
|
|| cd "$GIT_PREFIX" \
|
|
&& git diff --color "$@" | diff-so-fancy | less --tabs=4 -iRFX
|
|
}
|
|
|
|
f "$@"
|