Created
May 14, 2014 23:30
-
-
Save gianpaj/7c582b4b3c23bf494e64 to your computer and use it in GitHub Desktop.
Automate opening of new tabs in iTerm/Terminal and start command or daemon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo | |
echo "Opening project services in a new iTerm window" | |
osascript <<EOD | |
launch "iTerm" | |
tell application "iTerm" | |
activate | |
set myterm to (make new terminal) | |
tell myterm | |
launch session "mongodb" | |
tell the last session to write text "mongod" | |
launch session "redis" | |
tell the last session to write text "redis-server" | |
end tell | |
end tell | |
EOD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment