git-flow.plugin.zsh 1.2 KB

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