Bash Aliases (aka part 1 of 2000 of how to get more done in less time)
It’s one of the most important things in life. Don’t get me wrong, some things must be done slow to be done right. You want to carefully consider choices and decisions but what about the inbetween?
What if you just wanted to know if the internet was down (again) ?
What if you wanted to see what your debug key signature is for the millionth time?
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
Fond embracers of the terminal will be the first to snort approval that the fastest way to do most things, is via the terminal.
However, for the very common commands, you’d hardly want to keep typing them out every time.
Enter the bash aliases,
The most used of my aliases are:
This tells bash that whenever you type e by itself and press enter, you want it to run the command ‘exit’.
Pretty much anything that can be written in bash, an alias can made for.
Save this file to your home folder and thank me later. The letter after alias, is what you type to run the command after equals.
What will you be putting in your aliases file? Comment below or reach out to me on twitter at @AniketSMK