Using scripts in $PATH
instead of alias
for shortcuts (like g=git
) enhances flexibility, immediate updates, programming language choice, complexity management, and portability. While aliases are quicker and can leverage special shell features, scripts are preferred for their versatility and maintenance ease. Ultimately, both serve similar purposes but scripts are my default choice.
https://evanhahn.com/why-alias-is-my-last-resort-for-aliases/