Member-only story

Simple Bash/Apple Script to execute multiple commands on parallel terminal tabs

Niranjan Akella
5 min readApr 24, 2022

--

Source: iStock

We often develop complex applications which require certain amount of basic setup to begin development on every occasion.

For instance, I recently started working on a react-native project where I had to develop a mobile application with a backend on Express.js and MongoDB. I generally use iTerm 2 on my M1 MacBook as my goto application for terminal usage.

At every instance when ever I wished to resume my work on a daily basis I had to perform few routine tasks to setup my development environment as follows:

#Terminal1
cd <BackendProjectFolder>
npm run start
#Then open the MongoDB Compass Application#Terminal2
cd <ApplicationProjectFolder>
npm run android
#Then open the VSCode and navigate to project folder

After doing all these routine tasks every time I will be good to start my development. It might look small but there are developers who develop lots more things that require large basic setup to start their development.

--

--

Niranjan Akella
Niranjan Akella

Written by Niranjan Akella

A scientist by heart and a passionate researcher in my field of expertise. I love philosophy.

No responses yet