Efficiently Navigating Through Your Directories
Navigating through your directories can be done on separate lines in your Terminal. But this is inefficient.
Chaining them all together on one line is much cleaner!
This got me thinking; there has to be a faster way. As programmers we are lazy right? Introducing alias! Alias allows you to store shortcuts in your Terminal so that you can quickly accomplish tasks.
The issue with using alias in this way is that it’s only stored during your current session. This means that if you reload Terminal your shortcuts will be gone. A way to work around this is by saving your alias shortcuts to your bash or zsh file so that they will always work.
To accomplish this you first want to open up your Terminal and type in the following if you are using zsh:
If you are using bash you would type:
Your Terminal will open this:
At the bottom I have already added in my different alias shortcuts. You can also install different themes, fonts, and color schemes if you’d like.
ctrl T will allow you to save
ctrl X will exit out of this screen.
After reloading Terminal, a quick test of your new shortcuts will show you that alias is now working! Good luck and get creative!