From e91d6665fb25fa2fe34b5d9648002527d6dfa197 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Fri, 27 Sep 2024 14:28:13 -0400 Subject: [PATCH] add git abbreviation for deleting branches --- modules/common/shell/git.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/common/shell/git.nix b/modules/common/shell/git.nix index 411d617..4957986 100644 --- a/modules/common/shell/git.nix +++ b/modules/common/shell/git.nix @@ -113,7 +113,11 @@ in gpd = "git push origin -d"; gbd = "git branch -d"; gbD = "git branch -D"; - gdd = "git-delete-both"; + gdd = { + position = "anywhere"; + setCursor = true; + expansion = "BRANCH=% git push origin -d $BRANCH and git branch -d $BRANCH"; + }; gr = "git reset"; grh = "git reset --hard"; gm = "git merge";