❮ Zi ❯ Plugin - zsh-diff-so-fancy
A simple plugin integrating so-fancy/diff-so-fancy into Zsh. It provides:
git dsf
: A subcommand to run Git diffs through diff-so-fancyfancy-diff
: A helper to run a unified diff and beautify it with diff-so-fancy.zshrc
or plugin manager:
# Example using Zi zi ice as'program' pick'bin/*' zi light z-shell/zsh-diff-so-fancy
git dsf <files>
to see a diff rendered by diff-so-fancyfancy-diff <file1> <file2>
to compare two files with diff-so-fancydiff-so-fancy --colors # Show recommended color config diff-so-fancy --set-defaults # Configure Git to use diff-so-fancy with suggested colors diff-so-fancy --patch # Patch mode, interoperable with `git add --patch`
# Use diff-so-fancy for all diffs git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX" # Use diff-so-fancy for `git add --patch` git config --global interactive.diffFilter "diff-so-fancy --patch"
+
or -
from lines.zi ice as'null' sbin'bin/*' zi light z-shell/zsh-diff-so-fancy
Or:
zi ice as'program' pick'bin/*' zi light z-shell/zsh-diff-so-fancy
This places diff-so-fancy
, fancy-diff
, and git-dsf
in $PATH
, adding the dsf
subcommand to Git automatically.
zplug "z-shell/zsh-diff-so-fancy", as:command, use:"bin/"
zgen load z-shell/zsh-diff-so-fancy
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4