Skip to content

Commit

Permalink
fix: don't initialize branchless when invoking lazygit
Browse files Browse the repository at this point in the history
  • Loading branch information
macintacos committed Jan 16, 2024
1 parent 1ce1271 commit ae5e7eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions shell/fish/user/abbr.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions shell/fish/user/functions/git.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ae5e7eb

Please sign in to comment.