diff --git a/plugins/git-flow/README.md b/plugins/git-flow/README.md new file mode 100644 index 000000000..636392b07 --- /dev/null +++ b/plugins/git-flow/README.md @@ -0,0 +1,18 @@ +# Git flow plugin installation + +```bash +git clone https://github.com/robbyrussell/oh-my-zsh.git + +cp oh-my-zsh/plugins/git-flow/git-flow.plugin.zsh ~/.git-flow-completion.zsh + +gedit ~/.zshrc + +# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) +# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ +# Example format: plugins=(rails git textmate ruby lighthouse) +# Add wisely, as too many plugins slow down shell startup. + +plugins=(git git-flow) + +source ~/.git-flow-completion.zsh +``` diff --git a/plugins/git-flow/git-flow.plugin.zsh b/plugins/git-flow/git-flow.plugin.zsh index a8386cb19..257dc7d32 100644 --- a/plugins/git-flow/git-flow.plugin.zsh +++ b/plugins/git-flow/git-flow.plugin.zsh @@ -20,11 +20,35 @@ # c. Or, use this file as an oh-my-zsh plugin. # -#Alias -alias gfl='git flow' -alias gcd='git checkout develop' -alias gch='git checkout hotfix' -alias gcr='git checkout release' + # Git flow alias + alias gfl='git flow' + alias gfli='git flow init' + alias gflv='git flow version' + + # feature + alias gflf='git flow feature' + alias gflfs='git flow feature start' + alias gflff='git flow feature finish' + alias gflfd='git flow feature diff' + + # develop + alias gcd='git checkout develop' + + # hotfix + alias gflh='git flow hotfix' + alias gch='git checkout hotfix' + alias gflhs='git flow hotfix start' + alias gflhf='git flow hotfix finish' + alias gflhl='git flow hotfix list' + + # release + alias gflr='git flow release' + alias gcr='git checkout release' + alias gflrs='git flow release start' + alias gflrf='git flow release finish' + alias gcr='git checkout release' + alias gflrp='git flow release publish' + alias gflrl='git flow release list' _git-flow () {