Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
1c9a64ec
Unverified
Commit
1c9a64ec
authored
Oct 08, 2021
by
Michael Fryar
Committed by
GitHub
Oct 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(git): add `gswm` and `gswd` aliases (#9897)
Co-authored-by:
Nathaniel Young
<
nathanielyoung95070@gmail.com
>
parent
5fb204fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
README.md
plugins/git/README.md
+2
-0
git.plugin.zsh
plugins/git/git.plugin.zsh
+2
-0
No files found.
plugins/git/README.md
View file @
1c9a64ec
...
@@ -169,6 +169,8 @@ plugins=(... git)
...
@@ -169,6 +169,8 @@ plugins=(... git)
| gsu | git submodule update |
| gsu | git submodule update |
| gsw | git switch |
| gsw | git switch |
| gswc | git switch -c |
| gswc | git switch -c |
| gswm | git switch $(git_main_branch) |
| gswd | git switch $(git_develop_branch) |
| gts | git tag -s |
| gts | git tag -s |
| gtv | git tag
\|
sort -V |
| gtv | git tag
\|
sort -V |
| gtl | gtl(){ git tag --sort=-v:refname -n -l ${1}
*
}; noglob gtl |
| gtl | gtl(){ git tag --sort=-v:refname -n -l ${1}
*
}; noglob gtl |
...
...
plugins/git/git.plugin.zsh
View file @
1c9a64ec
...
@@ -295,6 +295,8 @@ alias gstall='git stash --all'
...
@@ -295,6 +295,8 @@ alias gstall='git stash --all'
alias
gsu
=
'git submodule update'
alias
gsu
=
'git submodule update'
alias
gsw
=
'git switch'
alias
gsw
=
'git switch'
alias
gswc
=
'git switch -c'
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
gts
=
'git tag -s'
alias
gtv
=
'git tag | sort -V'
alias
gtv
=
'git tag | sort -V'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment