Reputation: 765
So I'm trying to use Autohotkey to run a basic line script:
F19::
Send git checkout master; git pull; git merge nick; git push; git checkout nick; git merge master;
return
This works in any program but command prompt. I am using a mac keyboard on a windows machine, but have no issues with the F keys. I have this routed to F19. When I hit the key in git's command prompt within SmartGit, I get nothing. I've also tried rerouting the shortcut key to another bind, again with no result.
I am wondering if there is something in my command script that I am calling improperly?
Thank you in advance.
Upvotes: 0
Views: 825
Reputation: 2999
I would think a bash alias would work better in this situation.
alias dostuff="git checkout master && git pull && git merge nick && git push && git checkout nick && git merge master"
EDIT:
You could also make this more flexible by letting it take parameters ie. your branch name by using a function.
dostuff() {
git checkout master && git pull && git merge $1 && git push && git checkout $1 && git merge master
}
Calling it with dostuff nick
Upvotes: 2