An alias is a bash command shortcut. You run the shortcut name, and it executes the longer function you store. It’s great to save and quickly use common commands.

Assuming you’re using ZSH like me, here’s two useful commands to add to your aliases file right now:

alias viewali="cat ~/.oh-my-zsh/custom/aliases.zsh"
alias editali="cd ~/.oh-my-zsh/custom && vim aliases.zsh"

Aliases can run singular commands, but also combine them. A useful alias trick is to open a repo while also running locally. Here's one that would open up a website with Visual Studio Code while running the command to view it locally.

alias mysite="cd ~/Documents/my-site && code . && yarn develop"

Viola! One command to get you into working mode.