mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-18 10:22:00 +00:00
feat(git): add gswm
and gswd
aliases (#9897)
Co-authored-by: Nathaniel Young <nathanielyoung95070@gmail.com>
This commit is contained in:
parent
5fb204fa74
commit
1c9a64ece6
2 changed files with 4 additions and 0 deletions
|
@ -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 |
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue