Skip to content

Commit 11249af

Browse files
Merge pull request #382 from srsudar/add-hg-diff-to-protips
Add pro-tip about hg diff
2 parents e89694d + 5391296 commit 11249af

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pro-tips.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,12 @@ zplug "zdharma/zsh-diff-so-fancy", as:command, use:bin/git-dsf
5555
zgen zdharma/zsh-diff-so-fancy
5656
```
5757

58+
#### `hg` configuration
59+
60+
You can configure `hg diff` output to use `diff-so-fancy` by adding this alias
61+
to your `hgrc` file:
62+
63+
```
64+
[alias]
65+
diff = !HGPLAIN=1 $HG diff --pager=on --config pager.pager=diff-so-fancy $@
66+
```

0 commit comments

Comments
 (0)