diff options
author | Fumseck <fumseckworld@users.noreply.github.com> | 2016-08-17 22:26:13 +0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2016-08-17 22:26:13 +0200 |
commit | 0615dfe32c93bd5c7b78631d383edc9eb9db47d4 (patch) | |
tree | 7f4d5417f6de12cd51625295a20f36c9c29276bf | |
parent | acd6a14a2f9dc4d478b4f25eb852432ac54d8db1 (diff) | |
download | zsh-0615dfe32c93bd5c7b78631d383edc9eb9db47d4.tar.gz zsh-0615dfe32c93bd5c7b78631d383edc9eb9db47d4.tar.bz2 zsh-0615dfe32c93bd5c7b78631d383edc9eb9db47d4.zip |
Add alias and README to git-flow plugin (#5129)
-rw-r--r-- | plugins/git-flow/README.md | 36 | ||||
-rw-r--r-- | plugins/git-flow/git-flow.plugin.zsh | 10 |
2 files changed, 46 insertions, 0 deletions
diff --git a/plugins/git-flow/README.md b/plugins/git-flow/README.md new file mode 100644 index 000000000..d4cde34aa --- /dev/null +++ b/plugins/git-flow/README.md @@ -0,0 +1,36 @@ +# 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 + +vim ~/.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 +``` +## Your new git-flow alias + +```bash +alias gfl='git flow' +alias gfli='git flow init' +alias gcd='git checkout develop' +alias gch='git checkout hotfix' +alias gcr='git checkout release' +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 gflhf='git flow hotfix finish' +alias gflrf='git flow release finish' +``` diff --git a/plugins/git-flow/git-flow.plugin.zsh b/plugins/git-flow/git-flow.plugin.zsh index a8386cb19..bda050725 100644 --- a/plugins/git-flow/git-flow.plugin.zsh +++ b/plugins/git-flow/git-flow.plugin.zsh @@ -22,9 +22,19 @@ #Alias alias gfl='git flow' +alias gfli='git flow init' alias gcd='git checkout develop' alias gch='git checkout hotfix' alias gcr='git checkout release' +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 gflhf='git flow hotfix finish' +alias gflrf='git flow release finish' _git-flow () { |