diff options
author | Marc Cornellà <hello@mcornella.com> | 2021-12-28 19:29:39 +0100 |
---|---|---|
committer | Marc Cornellà <hello@mcornella.com> | 2021-12-28 19:42:12 +0100 |
commit | 6515850a1432199f8f3eef8e9ac711b8a7860ae5 (patch) | |
tree | 691c8370d5b9638382e7e3106feeea22923c1a3c /plugins/git-flow/git-flow.plugin.zsh | |
parent | 7a38fa35c404fdc17fdb4a310f73e98178c3a84a (diff) | |
download | zsh-6515850a1432199f8f3eef8e9ac711b8a7860ae5.tar.gz zsh-6515850a1432199f8f3eef8e9ac711b8a7860ae5.tar.bz2 zsh-6515850a1432199f8f3eef8e9ac711b8a7860ae5.zip |
feat(git-flow): add aliases for current `hotfix` branch
Diffstat (limited to 'plugins/git-flow/git-flow.plugin.zsh')
-rw-r--r-- | plugins/git-flow/git-flow.plugin.zsh | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/plugins/git-flow/git-flow.plugin.zsh b/plugins/git-flow/git-flow.plugin.zsh index 13399aaa3..f842de998 100644 --- a/plugins/git-flow/git-flow.plugin.zsh +++ b/plugins/git-flow/git-flow.plugin.zsh @@ -1,26 +1,28 @@ # Aliases -alias gfl='git flow' -alias gfli='git flow init' alias gcd='git checkout $(git config gitflow.branch.develop)' alias gch='git checkout $(git config gitflow.prefix.hotfix)' alias gcr='git checkout $(git config gitflow.prefix.release)' +alias gfl='git flow' alias gflf='git flow feature' -alias gflh='git flow hotfix' -alias gflr='git flow release' -alias gflfs='git flow feature start' -alias gflhs='git flow hotfix start' -alias gflrs='git flow release start' alias gflff='git flow feature finish' +alias gflffc='git flow feature finish ${$(git_current_branch)#feature/}' alias gflfp='git flow feature publish' +alias gflfpc='git flow feature publish ${$(git_current_branch)#feature/}' +alias gflfpll='git flow feature pull' +alias gflfs='git flow feature start' +alias gflh='git flow hotfix' alias gflhf='git flow hotfix finish' -alias gflrf='git flow release finish' +alias gflhfc='git flow hotfix finish ${$(git_current_branch)#hotfix/}' alias gflhp='git flow hotfix publish' +alias gflhpc='git flow hotfix publish ${$(git_current_branch)#hotfix/}' +alias gflhs='git flow hotfix start' +alias gfli='git flow init' +alias gflr='git flow release' +alias gflrf='git flow release finish' +alias gflrfc='git flow release finish ${$(git_current_branch)#release/}' alias gflrp='git flow release publish' -alias gflfpll='git flow feature pull' -alias gflffc='git flow feature finish $(echo $(current_branch) | cut -c 9-)' -alias gflfpc='git flow feature publish $(echo $(current_branch) | cut -c 9-)' -alias gflrfc='git flow release finish $(echo $(current_branch) | cut -c 9-)' -alias gflrpc='git flow release publish $(echo $(current_branch) | cut -c 9-)' +alias gflrpc='git flow release publish ${$(git_current_branch)#release/}' +alias gflrs='git flow release start' # Source completion script # Handle $0 according to the standard: |