Get the latest tech news
Why “alias” is my last resort for aliases
I prefer scripts to real aliases when defining a custom command.
Aliases are typically for simple things, like running git when you type g. But I have some scripts in~/bin that are a little more complex. I also have a shell function, boop, which makes a sound based on the exit status of the previous command. That makes sense; the computer has to find a file in your$PATH on disk, parse it, and execute it—slower than just running a command it probably stores in memory.
Or read this on Hacker News