dotfiles/.local/bin/scripts/git-fzf-diff

4 lines
174 B
Bash
Executable File

#!/bin/sh
# fzf tweaked for previewing diffs for git tracked files
fzf --tiebreak=end,index --multi --preview-window=wrap --preview='git diff HEAD --color=always -- {}' "$@"