Skip to content

Commit

Permalink
git: add tag aliases
Browse files Browse the repository at this point in the history
Originally submitted in sorin-ionescu#1094
  • Loading branch information
Rick Jones authored and belak committed Feb 21, 2018
1 parent 6d00fdf commit 4325f74
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/git/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,11 @@ zstyle ':prezto:module:git:alias' skip 'yes'
- `gSu` fetches and merges the latest changes for all submodule.
- `gSx` removes a submodule.

### Tag

- `gt` lists tags or creates tag.
- `gtl` lists tags matching pattern.

### Working directory

- `gws` displays working-tree status in the short format.
Expand Down
4 changes: 4 additions & 0 deletions modules/git/alias.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@ if ! zstyle -t ':prezto:module:git:alias' skip 'yes'; then
alias gSu='git submodule foreach git pull origin master'
alias gSx='git-submodule-remove'

# Tag (t)
alias gt='git tag'
alias gtl='git tag -l'

# Working Copy (w)
alias gws='git status --ignore-submodules=${_git_status_ignore_submodules} --short'
alias gwS='git status --ignore-submodules=${_git_status_ignore_submodules}'
Expand Down

0 comments on commit 4325f74

Please sign in to comment.