Skip to content

Commit 5391296

Browse files
committed
Add pro-tip about hg diff
1 parent e89694d commit 5391296

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)