summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/git/README.md2
-rw-r--r--plugins/git/git.plugin.zsh2
2 files changed, 4 insertions, 0 deletions
diff --git a/plugins/git/README.md b/plugins/git/README.md
index 12e3676e8..113080874 100644
--- a/plugins/git/README.md
+++ b/plugins/git/README.md
@@ -169,6 +169,8 @@ plugins=(... git)
| gsu | git submodule update |
| gsw | git switch |
| gswc | git switch -c |
+| gswm | git switch $(git_main_branch) |
+| gswd | git switch $(git_develop_branch) |
| gts | git tag -s |
| gtv | git tag \| sort -V |
| gtl | gtl(){ git tag --sort=-v:refname -n -l ${1}* }; noglob gtl |
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index 5c5db9972..dbcc7bddb 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -295,6 +295,8 @@ alias gstall='git stash --all'
alias gsu='git submodule update'
alias gsw='git switch'
alias gswc='git switch -c'
+alias gswm='git switch $(git_main_branch)'
+alias gswd='git switch $(git_develop_branch)'
alias gts='git tag -s'
alias gtv='git tag | sort -V'