From 548c10349ea4fc29b997108b0aad06076184a756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Tue, 5 Nov 2024 08:08:27 +0100 Subject: [PATCH] Add git checkout default branch abbreviation --- symlinks/config/fish/config.fish | 1 + 1 file changed, 1 insertion(+) diff --git a/symlinks/config/fish/config.fish b/symlinks/config/fish/config.fish index d08af48..ca55302 100644 --- a/symlinks/config/fish/config.fish +++ b/symlinks/config/fish/config.fish @@ -25,6 +25,7 @@ end abbr -a batdiff "git diff --name-only --diff-filter=d | xargs bat --diff" abbr -a ggpush "git push origin (__git.current_branch)" abbr -a ggpull "git pull origin (__git.current_branch)" +abbr -a gcm "git checkout (__git.default_branch)" source ~/.config/fish/platform_config/$MACHINE_TYPE.fish