git-flow.plugin.zsh 1.4 KB

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