how2 icon indicating copy to clipboard operation
how2 copied to clipboard

Update README.md

Open ahmadawais opened this issue 9 years ago • 6 comments

ZSH Aliases

For ZSH users I created a few awesome aliases just put them in your .zshrc file.

# how2 StackExchange search
alias how="how2 $*"
alias howwp="how2 -l wordpress $*"
alias howphp="how2 -l php $*"

# Usage: how lang then question
# E.g. howl php create array in OOP
# $1 is agrument 1
# ${@:2} is everything from argument 2 to end
alias howl="how2 -l $1 ${@:2}"

ahmadawais avatar Feb 28 '16 09:02 ahmadawais

Great idea. But perhaps we should have a separate Aliases.md file with alias recommendations, organized by shell type?

danielkop avatar Feb 28 '16 10:02 danielkop

You can merge this and create the separate files. I use ZSH, so that's what I use. Thanks for the cool script.

ahmadawais avatar Feb 28 '16 10:02 ahmadawais

@ahmadawais This could look nicer in the history if squashed to a single commit.

danyshaanan avatar Mar 02 '16 18:03 danyshaanan

True! So, should I submit a new one?

ahmadawais avatar Mar 03 '16 03:03 ahmadawais

It's probably safe to squash the commits in this case http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html

But you can also create a new branch from master and apply the changes in a single commit.

danielkop avatar Mar 03 '16 05:03 danielkop

I'm for squashing and force-pushing, (just in this case of a temp fork's branch). This will automatically update the pull request.

danyshaanan avatar Mar 03 '16 08:03 danyshaanan