Skip to content

Commit 7da9ddb

Browse files
committed
pro-tips: Information about Zsh plugin/package providing diff-so-fancy
1 parent 423d22f commit 7da9ddb

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

pro-tips.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,22 @@ between files with `n`/`N` keys:
3636
[pager]
3737
diff = diff-so-fancy | less --tabs=4 -RFX --pattern '^(Date|added|deleted|modified): '
3838
```
39+
40+
#### Zsh plugin providing diff-so-fancy
41+
42+
Zsh plugin [zdharma/zsh-diff-so-fancy](https://github.com/zdharma/zsh-diff-so-fancy) has this
43+
project as a submodule so installing the plugin installs `diff-so-fancy`. The plugin provides
44+
subcommand `git dsf` out of the box. Installation with Zplugin, Zplug and Zgen:
45+
46+
```zsh
47+
# Zplugin
48+
zplugin ice as"program" pick"bin/git-dsf"
49+
zplugin light zdharma/zsh-diff-so-fancy
50+
51+
# Or zplug
52+
zplug "zdharma/zsh-diff-so-fancy", as:command, use:bin/git-dsf
53+
54+
# Or zgen and others
55+
zgen zdharma/zsh-diff-so-fancy
56+
```
57+

0 commit comments

Comments
 (0)