Skip to content

Commit 1e57009

Browse files
committed
improve Manual installation section
1 parent 796ebf6 commit 1e57009

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

readme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,18 @@ npm install -g diff-so-fancy
3838
This will install and link the `diff-so-fancy` and `diff-highlight` scripts.
3939

4040
### Manual installation alternative
41+
4142
If you want, you can choose to install manually:
4243

4344
* Grab the two scripts (`diff-highlight` and `diff-so-fancy`) via either downloading or cloning the repo.
44-
* Place them in a location that is in your `PATH`.
45+
* If you download `diff-highlight` from the official git repo, make sure it's executable.
46+
* Symlink or place them in a location that is in your `PATH`.
4547
* Set up the git `core.pager` config, as described above.
4648

4749
Note: The `diff-highlight` dependency is an [official git-contrib script](https://github.com/git/git/tree/master/contrib/diff-highlight), duplicated here for convenience. If you prefer less fancy in your diff, you also use diff-highlight [on it's own](https://news.ycombinator.com/item?id=11068436).
4850

4951
### Install GNU `sed`
52+
5053
You'll need GNU sed. On Mac, it's easy to install with Homebrew.
5154
```shell
5255
brew install gnu-sed

0 commit comments

Comments
 (0)