Skip to content

Instantly share code, notes, and snippets.

@Lysak
Last active November 8, 2024 05:28
Show Gist options
  • Save Lysak/a092a5d91daa14ab5845061274ad60fe to your computer and use it in GitHub Desktop.
Save Lysak/a092a5d91daa14ab5845061274ad60fe to your computer and use it in GitHub Desktop.
Launch Multi-Tab Terminal Processes for Development. This script automates the process of opening multiple Terminal tabs and running specific commands in each.
#!/usr/bin/env sh
osascript -e 'tell application "Terminal" to do script "cd /Users/Files/www/work/docker; ./docker/start.sh;"'
osascript -e 'tell application "Terminal" to do script "cd /Users/Files/www/work/angular; npm start;"'
osascript -e 'tell application "Terminal" to do script "cd /Users/Files/www/work/api; sleep 30; ./scripts/docker/queues.sh;"'
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment