A quick guide to terminal Aliases

Kittens typing furiously just to change the terminal directory.
An alias to navigate between different folders.
An alias to open Chrome based on my local chrome directory.

SETTING UP AN ALIAS

By now, I’m sure you’ve realized aliases are an awesome way to save time and do less typing so let’s go through the setup process.

Two commands to create your zshrc file if you don’t already have one.
An alias to get your public IP address from the terminal

As you can see, to create an alias we use the word ‘alias’ followed by the command we want to use to execute and set it equal to our regular terminal command.

When you spend a lot of time in the terminal, one of the most common things you do is search for files. If you’ve worked with Linux, you know you can use grep to find files. Unfortunately, the grep in MacOS does not work the same way as in Linux. You can either learn how to operate the grep command in MacOS or install the Linux version of grep. I decided to install the Linux version, but you have to call it with ggrep to avoid conflict with the local grep. To make searching for files easier, I created an alias to search for files below.

An alias to search for files quickly using ggrep.
List of standard git Aliases.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store