Skip to content

Conversation

@ahmadawais
Copy link

@ahmadawais ahmadawais commented May 27, 2016

Oh My ZSH Aliases

If you are an OH MY ZSH user, you can use following aliases to speed things up. Put these in your .zshrc file or your alias file as per your workflow.

#
# Git Reflow Aliases.
#

# Usage: grf start aa-feature
alias grf="git reflow $@"

# Usage: grfs aa-feature
alias grfs="git reflow start $@"

# Usage: grfr
alias grfr="git reflow review"

# Usage: grfd
alias grfd="git reflow deliver"

# Usage: grfrefresh
alias grfd="git reflow refresh"

# Usage: grfst
alias grfd="git reflow status"

== Oh My ZSH Aliases
If you are an OH MY ZSH user, you can use following aliases to speed things up. Put these in your `.zshrc` file or your alias file as per your workflow.

```bash
#
# Git Reflow Aliases.
#

# Usage: grf start aa-feature
alias grf="git reflow $@"

# Usage: grfs aa-feature
alias grfs="git reflow start $@"

# Usage: grfr
alias grfr="git reflow review"

# Usage: grfd
alias grfd="git reflow deliver"

# Usage: grfrefresh
alias grfd="git reflow refresh"

# Usage: grfst
alias grfd="git reflow status"
```
@timraasveld
Copy link
Contributor

Good idea. You don't even need Oh-My-ZSH to do this, plain Bash(or zsh for that matter) also supports aliases :-)

@ahmadawais
Copy link
Author

@timraasveld Thanks for the + vote. I use OH My ZSH so, was not sure if these would work for other workflows. I think we can wait for @codenamev to respond :)

@pboling
Copy link
Contributor

pboling commented May 30, 2016

I have similar aliases for bash, and will begin using these for git reflow. Thanks!

@ahmadawais
Copy link
Author

@pboling Glad you found them useful.

@codenamev
Copy link
Collaborator

I think I would rather see these as git aliases. We could then offer a setup subcommand git reflow setup aliases that could just add them to the user's config file automatically 😄

@codenamev
Copy link
Collaborator

@ahmadawais closing this in favor of moving toward git-aliases (tracking this with #191). If you'd like, please update the README with instructions on adding git aliases and I'll re-open this.

@codenamev codenamev closed this Jun 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants