Browse Source

feat(git): add tag aliases `gt` and `gta` (#11910)

Co-authored-by: hasecilu <hasecilu@protonmail.com>
Co-authored-by: Rik <gitaarik@posteo.net>
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
Adam Johnson 1 year ago
parent
commit
e2b855341b
2 changed files with 4 additions and 0 deletions
  1. 2 0
      plugins/git/README.md
  2. 2 0
      plugins/git/git.plugin.zsh

+ 2 - 0
plugins/git/README.md

@@ -197,6 +197,8 @@ plugins=(... git)
 | `gswc`                 | `git switch -c`                                                                                                                                                     |
 | `gswc`                 | `git switch -c`                                                                                                                                                     |
 | `gswd`                 | `git switch $(git_develop_branch)`                                                                                                                                  |
 | `gswd`                 | `git switch $(git_develop_branch)`                                                                                                                                  |
 | `gswm`                 | `git switch $(git_main_branch)`                                                                                                                                     |
 | `gswm`                 | `git switch $(git_main_branch)`                                                                                                                                     |
+| `gt`                   | `git tag`                                                                                                                                                           |
+| `gta`                  | `git tag --annotate`                                                                                                                                                |
 | `gts`                  | `git tag -s`                                                                                                                                                        |
 | `gts`                  | `git tag -s`                                                                                                                                                        |
 | `gtv`                  | `git tag \| sort -V`                                                                                                                                                |
 | `gtv`                  | `git tag \| sort -V`                                                                                                                                                |
 | `gignore`              | `git update-index --assume-unchanged`                                                                                                                               |
 | `gignore`              | `git update-index --assume-unchanged`                                                                                                                               |

+ 2 - 0
plugins/git/git.plugin.zsh

@@ -345,6 +345,8 @@ alias gsw='git switch'
 alias gswc='git switch --create'
 alias gswc='git switch --create'
 alias gswd='git switch $(git_develop_branch)'
 alias gswd='git switch $(git_develop_branch)'
 alias gswm='git switch $(git_main_branch)'
 alias gswm='git switch $(git_main_branch)'
+alias gt='git tag'
+alias gta='git tag --annotate'
 alias gts='git tag --sign'
 alias gts='git tag --sign'
 alias gtv='git tag | sort -V'
 alias gtv='git tag | sort -V'
 alias gignore='git update-index --assume-unchanged'
 alias gignore='git update-index --assume-unchanged'