Create a command by using a shortcuts key on mac
How to Make Alias on Mac with Terminal
Step 1: Start Mac Terminal. Go to LaunchPad and search for Terminal. Once you see it, click on it to start it up.
Step 2: Make sure you are in your home directory. Type cd and hit the return/enter key. This will ensure you are in your home directory.
Step 3: Determine which shell you are using. You can find out which shell you are running by typing in the command below.
Step 4: Open the shell profile file.
Step 5: Add the alias commands to the file.
Step 6: Exit Terminal and restart it.