If there's one functionality of bash that most beginners don't know but get very excited about when they discover it, it's history. First you learn to go through the history by pressing up and down, then you find out that
CTRL+R is the spell that gives you access to write commands and find them from history.
I'm a huge fan of that. Probably 80-90% of my bash command history is repeating commands over and over again. Whether it's
npm run start,
git add . or something similar, I can find it from my history.
But the built-in search isn't always the optimal one. You can't really see the history: you have to know what you're looking for. Luckily, developer community is amazing and Andrew Cantino has built a tool to augment your bash history.
Meet McFly. Great Scott!
Instead of being faced with blank black prompt, you get nice visual view of your history. You can search by writing a part of the command, you can navigate with arrow keys and either run (ENTER) or edit (TAB) your commands.
It also features a smart system that takes into account certain things to be more relevant: in which directory you are, what's the context of the command, if the command has failed or not, etc.
In the beginning, mcfly felt a little bit slower because it takes a moment to start up. But after using it a while, I don't want to go back to guessing game.
when should you quit your current job to pursue your goals. I see postings all the time of how people quit their job saved up money for x time and begin working toward there goal of getting a better career. I want to talk about the other half of this for a minute of is this really a smart move?