I am trying to create a git alias that takes a string as a entire positional paramter.
For e.g. I have a alias as follows:
my-alias = "!f() { \
param1 = $1; \
param2 = $2; \
rem_param = ${@:3};\
};f"
And I want to use alias as:
$ git my-alias abc "this is one parameter" 11 22 44
Here my parameters should be
param1 = abc
param2 = "this is one parameter"
rem_pram = 11 22 44
The way I have setup it starts treating every word in the string as a separate parameter. So the question is there any way to treat the string as one parameter?