· Guides · 4 min read
Automate Dev Environment Setup on Mac
Stop manually opening apps, terminals, and browser tabs every morning. Record your dev environment setup once and launch everything with one click.
Every morning, the same routine:
- Open VS Code
- Open Terminal
- Navigate to project directory
- Start dev server
- Open browser to localhost
- Open Slack
- Open documentation tabs
- Arrange windows…
It takes 5-10 minutes, and you’ve done it hundreds of times.
What if one click did all of that?
The Hidden Cost of Setup
Setup time seems trivial—a few minutes. But consider:
- 5 minutes × 5 days × 50 weeks = 20+ hours/year on opening apps
- Context switching before you’ve written a line of code
- Forgetting steps when you’re tired or distracted
- Inconsistent environment when you skip things
A one-click setup eliminates all of this.
What to Automate
Application Launches
Everything you open daily:
- IDE (VS Code, Xcode, IntelliJ)
- Terminal with specific tabs
- Browser with dev URLs
- Database client
- API testing tool (Postman, Insomnia)
- Communication (Slack, Discord)
- Documentation sites
Window Arrangement
Your preferred layout:
- IDE on left monitor
- Browser on right monitor
- Terminal at bottom
- Slack in corner
Initial Navigation
Starting positions:
- IDE opens to current project
- Terminal cd’s to project root
- Browser opens localhost:3000
- Docs open to relevant pages
Recording Your Setup with ClickMimic
Step 1: Start Clean
Close all applications. Start from the state you’ll be in each morning (after logging in, before starting work).
Step 2: Plan the Order
Sequence matters. Launch heavy apps first so they have time to load:
- IDE (heaviest, needs most startup time)
- Database tools
- Terminal
- Browser
- Communication apps (last, least critical)
Step 3: Record
Open ClickMimic and click Record:
Example sequence:
1. Cmd+Space → type "VS Code" → Enter [wait 5 sec]
2. Cmd+Space → type "Terminal" → Enter [wait 2 sec]
3. In Terminal: cd ~/projects/myapp [Enter]
4. Cmd+T (new tab)
5. In new tab: cd ~/projects/myapp && npm run dev [Enter]
6. Cmd+Space → type "Chrome" → Enter [wait 2 sec]
7. Cmd+T → type localhost:3000 [Enter]
8. Cmd+T → type "your docs URL" [Enter]
9. Cmd+Space → type "Slack" → Enter
10. [Arrange windows as needed]
Click Stop when everything is set up.
Step 4: Add Delays
Edit the recording to add delays after application launches:
- IDE: 5-8 seconds (heavy startup)
- Terminal: 2-3 seconds
- Browser: 2-3 seconds
- Slack: 3-4 seconds
Without delays, you’ll try to interact with apps before they’re ready.
Step 5: Test
Run the recording from the same clean state. Watch for:
- Apps that aren’t ready when interactions start
- Windows that don’t position correctly
- Commands that don’t execute fully
Adjust timing and re-record problem sections.
Advanced Setup Automation
Multiple Projects
Create separate recordings for different projects:
- “Setup: Frontend Project”
- “Setup: Backend API”
- “Setup: Mobile App”
Select the right one based on what you’re working on.
Morning vs Afternoon
Your setup might differ by time of day:
- Morning: Full setup with email, calendar check
- After lunch: Quick setup, skip communication apps
- Deep work: Minimal setup, close distractions
Machine-Specific Setups
If you use multiple Macs (office desktop, laptop):
- Create separate recordings for each machine’s configuration
- Account for different screen sizes and app positions
Real Developer Setups
Full-Stack Web Developer
1. VS Code → open workspace "webapp"
2. Terminal Tab 1: cd ~/webapp && npm run dev
3. Terminal Tab 2: cd ~/webapp/api && npm run start
4. Terminal Tab 3: cd ~/webapp (for git commands)
5. Chrome Tab 1: localhost:3000
6. Chrome Tab 2: localhost:3000/api/docs
7. Chrome Tab 3: GitHub PR page
8. TablePlus → connect to dev database
9. Slack → jump to #engineering channel
Total manual time: 8 minutes Automated time: 45 seconds + delays = ~2 minutes
Mobile Developer
1. Xcode → open current project
2. Simulator → launch (from Xcode or manually)
3. Terminal: cd ~/mobile-app
4. Chrome Tab 1: Apple Developer docs
5. Chrome Tab 2: App Store Connect
6. Slack → #mobile-team channel
7. Figma → current design file
Backend/DevOps Developer
1. VS Code → open infrastructure repo
2. Terminal Tab 1: cd ~/infra
3. Terminal Tab 2: ssh into staging server
4. Terminal Tab 3: tail logs
5. Chrome Tab 1: AWS Console
6. Chrome Tab 2: Grafana dashboard
7. Chrome Tab 3: PagerDuty
8. Slack → #ops channel
Tips for Reliable Setup Recordings
Use Spotlight/Alfred
Cmd+Space followed by app name is more reliable than clicking Dock icons. It works regardless of Dock position or visibility.
Wait for Indicators
After launching an app, wait for a visual indicator it’s ready:
- VS Code: File tree appears
- Chrome: Tab bar visible
- Terminal: Prompt appears
Handle Login Prompts
If an app requires login:
- Option A: Keep apps logged in between sessions
- Option B: Include login keystrokes in the recording
- Option C: Use keychain/password manager integration
Position Windows Last
Launch everything first, then arrange windows. This is more reliable than arranging while launching.
Scheduling Your Setup
ClickMimic can run your setup automatically:
- Time-based: Start at 8:55am every weekday
- On wake: Trigger when your Mac wakes from sleep
When you sit down, your environment is already waiting.
Beyond Morning Setup
The same technique works for:
- End of day: Close apps, save work, shut down cleanly
- Meeting mode: Minimize distractions, open notes app
- Presentation mode: Arrange for screen sharing
- Focus mode: Close communication apps, open project
Getting Started
- Download ClickMimic
- Write down your current setup routine
- Record it once
- Test and adjust timing
- Never manually set up again
10 minutes today saves 20+ hours per year.
Start your day ready to code, not clicking through app launches. Get ClickMimic and automate your dev setup.
Automate this workflow on macOS
Record mouse and keyboard actions, schedule replays, and run no-code automations with ClickMimic.