DEV Community

Cover image for πŸš€ How I Stopped Juggling 4 Terminal Tabs Every Morning
Gurinder Chauhan
Gurinder Chauhan

Posted on

πŸš€ How I Stopped Juggling 4 Terminal Tabs Every Morning

When working locally on my Laravel + Bun + Stripe stack for AI Email Builder, I used to open 4 terminal tabs every time:

  1. bun run dev for frontend
  2. php artisan queue:work for jobs
  3. php artisan schedule:work for cron
  4. and Stripe listener for webhooks

It worked… but it was annoying.

So I wrote a tiny Bash script to spin everything up in one command πŸ‘‡

#!/bin/bash

BASE=$PWD

DEV_CMD="(cd $BASE && bun run dev)"
QUEUE_CMD="(cd $BASE && php artisan queue:work)"
SCHEDULE_CMD="(cd $BASE && php artisan schedule:work)"
STRIPE_CMD="(cd $BASE && zsh listen-stripe.sh)"

npx concurrently \
    -n dev,queue,schedule,stripe \
    -c green,blue,magenta,yellow \
    "$DEV_CMD" \
    "$QUEUE_CMD" \
    "$SCHEDULE_CMD" \
    "$STRIPE_CMD"

Enter fullscreen mode Exit fullscreen mode

Now I just run: ./dev.sh

And everything starts together β€” clean, color-coded, and fast πŸ™Œ

This little script made my daily development workflow for Email Builder so much smoother.

Feel free to tweak it to match your stack too.

Top comments (0)