Information Technology Reference
In-Depth Information
can be called:
$ git list-files
This call will result in the following command:
$ ls
I use aliases prefixed with exclamation mark together with shell functions. The ali-
as:
foo = "!bar(){ }; bar"
can be called:
$ git foo
The exclamation mark tells git that this alias should be passed to shell. The next
part:
bar(){};bar
consists of a function definition:
bar(){};
and a function call:
bar
Inside the braces you can place an arbitrary number of complete shell calls, separ-
ated with semicolons, for example:
foo = "!bar(){ echo abc; ls; }; bar"
This alias can be called:
$ git foo
It will result in two commands:
Search WWH ::




Custom Search