Skip to content

Instantly share code, notes, and snippets.

@kmatt
Created July 3, 2024 02:18
Show Gist options
  • Save kmatt/4ee3c24ab077ae556fb15563fd08469b to your computer and use it in GitHub Desktop.
Save kmatt/4ee3c24ab077ae556fb15563fd08469b to your computer and use it in GitHub Desktop.
Delta diffs in Tig
# View diffs using delta
# Via https://github.com/jonas/tig/issues/26#issuecomment-1923835137
bind diff D >sh -c "git show %(commit) | delta --paging always"
bind diff S >sh -c "git show %(commit) | delta --paging always --side-by-side"
bind stage D >sh -c "git diff HEAD -- %(file) | delta --paging always"
bind stage S >sh -c "git diff HEAD -- %(file) | delta --paging always --side-by-side"
bind status D >sh -c "git diff HEAD -- %(file) | delta --paging always"
bind status S >sh -c "git diff HEAD -- %(file) | delta --paging always --side-by-side"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment