We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7bd74e3 + 2651b15 commit f222ff7Copy full SHA for f222ff7
pro-tips.md
@@ -2,12 +2,14 @@
2
3
#### One-off fanciness or a specific diff-so-fancy alias
4
5
-You can do also do a one-off or a specific `diff-so-fancy` alias:
+You can do also do a one-off:
6
```shell
7
git diff --color | diff-so-fancy
8
-
9
-git config --global alias.dsf '!f() { [ -z "$GIT_PREFIX" ] || cd "$GIT_PREFIX" '\
10
-'&& git diff --color "$@" | diff-so-fancy | less --tabs=4 -RFXS; }; f'
+```
+or configure an alias and a corresponding pager to use `diff-so-fancy`:
+```shell
11
+git config --global alias.dsf "diff --color"
12
+git config --global pager.dsf "diff-so-fancy | less --tabs=4 -RFXS"
13
```
14
15
#### Opting-out
0 commit comments