Skip to content

Commit 926f915

Browse files
committed
Merge pull request #30 from tommarshall/git-alias-usage
Add git alias usage to docs
2 parents 519568c + 5035027 commit 926f915

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ git diff --color | diff-so-fancy
2424
git config --global core.pager "diff-so-fancy | less --tabs=1,5 -R"
2525
```
2626

27+
Or, create a git alias in your `~/.gitconfig` for shorthand fanciness:
28+
```shell
29+
diff-so-fancy = "!git diff --color $@ | diff-so-fancy"
30+
```
31+
2732
## Install
2833

2934
For convenience, the recommended installation is via NPM:

0 commit comments

Comments
 (0)