Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

create alias with multi word parameter #376

Closed
luisrudge opened this issue Jan 27, 2015 · 3 comments
Closed

create alias with multi word parameter #376

luisrudge opened this issue Jan 27, 2015 · 3 comments

Comments

@luisrudge
Copy link

I want something like that:

gc=git commit -m $1

But when i hit gc "my message", the commited message is just "my".

How can I add the entire string as one parameter?

@r3Fuze
Copy link

r3Fuze commented Jan 27, 2015

You can use $* to get everything passed into the alias.
So gc=git commit -m $* would do what you need.

@luisrudge
Copy link
Author

Thaaaaaanks very much! :)

Enviado pelo meu Windows Phone


From: Morten Lindhardtmailto:notifications@github.com
Sent: ‎27/‎01/‎2015 07:40
To: bliker/cmdermailto:cmder@noreply.github.com
Cc: Luís Rudgemailto:luis@luisrudge.net
Subject: Re: [cmder] create alias with multi word parameter (#376)

You can use $* to get all the arguments.
So gc=git commit -m $* would do what you need.


Reply to this email directly or view it on GitHub:
#376 (comment)

@abdallahelmalawy
Copy link

Good job man

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants