From 3cc5c97178fe108d8d7ac674c4beb5733de388c9 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 30 Oct 2024 14:52:31 +0000 Subject: [PATCH] git: remove `unstage` alias and move it to a zsh ...abbreviation --- lib/shared/modules/git.nix | 1 - lib/shared/modules/zsh/abbreviations.zsh | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shared/modules/git.nix b/lib/shared/modules/git.nix index c2397ab..26b9fb8 100644 --- a/lib/shared/modules/git.nix +++ b/lib/shared/modules/git.nix @@ -73,7 +73,6 @@ sla = "log --oneline --decorate --graph --all -20"; slap = "log --oneline --decorate --graph --all"; slp = "log --oneline --decorate"; - staged = "diff --staged"; stash = "stash --included-untracked"; unassume = "update-index --no-assume-unchanged"; uncommit = "reset --soft HEAD^"; diff --git a/lib/shared/modules/zsh/abbreviations.zsh b/lib/shared/modules/zsh/abbreviations.zsh index 395cc3f..051f4b3 100644 --- a/lib/shared/modules/zsh/abbreviations.zsh +++ b/lib/shared/modules/zsh/abbreviations.zsh @@ -23,6 +23,7 @@ abbr gcl="git clone" abbr gcm="git commit -m" abbr gco="git checkout" abbr gd="git diff" +abbr gds="git diff --staged" abbr gf="git fetch" abbr gfa="git fetch --all" abbr gl="git log"