From ae5e7ebf8bdc43abc4767ab243ad54f75c8cd132 Mon Sep 17 00:00:00 2001 From: Julian Torres Date: Tue, 16 Jan 2024 11:04:17 -0500 Subject: [PATCH] fix: don't initialize branchless when invoking lazygit --- shell/fish/user/abbr.fish | 1 + shell/fish/user/functions/git.fish | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/shell/fish/user/abbr.fish b/shell/fish/user/abbr.fish index be35ce5..2918758 100644 --- a/shell/fish/user/abbr.fish +++ b/shell/fish/user/abbr.fish @@ -34,6 +34,7 @@ abbr gl "git pull" abbr gf "git fetch" abbr gfp "git fetch --prune" abbr gp "git push" +abbr gst "lazygit" abbr gtr "git trim --delete stray,merged-local" # ref: https://github.com/foriequal0/git-trim abbr sm smerge abbr gt gittower diff --git a/shell/fish/user/functions/git.fish b/shell/fish/user/functions/git.fish index 71f1431..44e7304 100644 --- a/shell/fish/user/functions/git.fish +++ b/shell/fish/user/functions/git.fish @@ -3,11 +3,3 @@ function cdg --description "'cd' to the top level of a git project" cd (git rev-parse --show-toplevel) end -function gst --description "Start Lazygit (and conditionally init branchless)" - if not git sl &>/dev/null - echo "Initializing git branchless before starting lazygit..." - git branchless init - end - - lazygit -end