git-flow.plugin.zsh
1400 bytes
1# Aliases
2alias gcd='git checkout $(git config gitflow.branch.develop)'
3alias gch='git checkout $(git config gitflow.prefix.hotfix)'
4alias gcr='git checkout $(git config gitflow.prefix.release)'
5alias gfl='git flow'
6alias gflf='git flow feature'
7alias gflff='git flow feature finish'
8alias gflffc='git flow feature finish ${$(git_current_branch)#feature/}'
9alias gflfp='git flow feature publish'
10alias gflfpc='git flow feature publish ${$(git_current_branch)#feature/}'
11alias gflfpll='git flow feature pull'
12alias gflfs='git flow feature start'
13alias gflh='git flow hotfix'
14alias gflhf='git flow hotfix finish'
15alias gflhfc='git flow hotfix finish ${$(git_current_branch)#hotfix/}'
16alias gflhp='git flow hotfix publish'
17alias gflhpc='git flow hotfix publish ${$(git_current_branch)#hotfix/}'
18alias gflhs='git flow hotfix start'
19alias gfli='git flow init'
20alias gflr='git flow release'
21alias gflrf='git flow release finish'
22alias gflrfc='git flow release finish ${$(git_current_branch)#release/}'
23alias gflrp='git flow release publish'
24alias gflrpc='git flow release publish ${$(git_current_branch)#release/}'
25alias gflrs='git flow release start'
26
27# Source completion script
28# Handle $0 according to the standard:
29# https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html
300="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
310="${${(M)0:#/*}:-$PWD/$0}"
32source "${0:A:h}/_git-flow"