3 ms·
In this example, it's easier to just do "ln -s /usr/bin/git ~/bin/g" instead of creating a bash script... But that's just my opinion.
by acatton 2y ago
In this example, it's easier to just do "ln -s /usr/bin/git ~/bin/g" instead of creating a bash script...
But that's just my opinion.
- adrian_b 2y agoTrue, but I think that the author did not mean this as a real useful example. At least for myself, the main benefit of aliases is not to abbreviate the command name, but to change the default command-line options. I strongly dislike the default command-line options of most UNIX utilities, e.g. cp, mv, rm and the like, so I never invoke them directly, but only through aliases that use what I consider to be the correct default options (for instance I consider that the default for any kind of copy command must be to make an exact copy of the source, instead of losing any part of the original information).