From c80a783a5e6258e457803391efa1d54c6dd02d03 Mon Sep 17 00:00:00 2001 From: Felix Nehrke Date: Mon, 8 Jun 2026 02:42:20 +0200 Subject: [PATCH] Add `gds` and `gdcs` to view diffs side-by-side --- .bashrc | 2 ++ .config/git/config | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.bashrc b/.bashrc index 1fd946d..65e3a8c 100644 --- a/.bashrc +++ b/.bashrc @@ -80,10 +80,12 @@ alias commit='git commit' alias gc='git commit' alias st='git status' alias gd='git diff' +alias gds='git diffs' alias gdl='GIT_PAGER=less git diff' alias gt='git gt' alias gtl='GIT_PAGER=less git gt' alias gdc='gd --cached' +alias gdcs='gds --cached' alias gdcl='GIT_PAGER=less gd --cached' alias c='git commit' alias vimwiki='vim -c VimwikiIndex -c "cd %:p:h" -c "silent Git pull"' diff --git a/.config/git/config b/.config/git/config index 9a12e64..8474ea6 100644 --- a/.config/git/config +++ b/.config/git/config @@ -83,6 +83,9 @@ # Show the changes which will be committed dc = diff --cached + # Show diff side-by-side + diffs = -c delta.side-by-side=true diff + # Fetch all remote-changes, but don't merge local branches! fa = fetch --all