I've automated my morning routine 🤖

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.
Search for a command to run...

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.
Bash to open tabs ? Please. Try Workona. It saves my life :) I have on it different profiles and change opened tabs between each other so fast.
Getting my Arduino in today or tomorrow so hopefully soon! 😂
Thanks for this post! This stuff looks so good for devs, gonna start writing my bash scripts today ;)
Thanks! Glad you like it 🙏
Thank you Rutik, automation is the bomb 💣
Thanks! Love using bash for simple things
Thanks Syed, you seem like the person who also makes scripts like this for simple tasks?
Most of you know me for my consistency, a golden arrow in my blog series. I've written 1000 articles in 1008 days! Almost an article a day, and my honeymoon was the only holiday I ever took. I'm super proud of this achievement; it has been a fantasti...

It's not the first time I'll be talking about community. I think it's an essential aspect of any successful tool. This shows in my previous explorations of Astro, Medusa, and now Vendure as well. All these products thrive in a super open, welcoming, ...

The cool part about Vendure is how easy it is to set up and how abstract each layer is. Basically, we get the following elements: External database Server Worker Admin UI Frontend While this is amazing, it also brings a bit of complexity when it co...

The previous article looked at customizing Vendure on a data and process level. In this article, we'll look at customizing emails, as they are often a big part of a webshop system. We'll be looking at two different layers of customization for customi...

Even though Vendure is a pretty significant project out of the box, in some cases, we might want to go in and modify some elements to work to our specific use case. In this article, I'll take a high-level look at some elements we can customize within...

Call me lazy, but I just love automating things. Today we are automating my morning routine.
You may be wondering what that routine is.
Yes, that last part we are automating using the magic and mighty bash!
See here how cool this project is:

Note: This script is written/tested on Mac and can differ for you on different machines.
First, we will be making a plain old .txt file that will hold all the pages we want to open:
https://hashnode.com/
https://daily-dev-tips.com/
https://twitter.com/
Now we will be making a bash script to open all browser tabs:
alias google-chrome='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome'
while read line; do
google-chrome --new-tab "$line"
done < ~/www/browser-hack/list.txt
I have defined the alias for google-chrome; I think on windows, you can leave the alias out (untested).
Then we will loop through each line defined in list.txt and call google chrome to open a new tab for that website.
Next, we can add an alias to make it even cooler:
alias morning=~/path/to/script/bash.sh
Now in your terminal type: morning and see the magic happen
Voila, we just hacked our morning routine to be that much quicker!
You can find this project on Github: Browser-hack
Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on Facebook or Twitter