by canadev · 12y ago · 0 comments
Can I duplicate this functionality using iTerm, without using AppleScript?
[1] Here's the code; I cobbled it together from some StackOverflow snippet or something: https://gist.github.com/anonymous/f16a46c327a14ec8a5b5
I have a config that looks like this:
# ~/.tmuxinator/blah.yml
name: blah
root: ~/Development/blah
windows:
- web:
layout: even-vertical
panes:
- cd web
- cd web; gulp server default watch --device desktop
- admin:
layout: even-vertical
panes:
- cd admin
- cd admin; gulp dev
- ssh:test:
layout: even-vertical
panes:
- clear; ssh ubuntu@web.test
- ssh:prod:
layout: even-vertical
panes:
- clear; ssh ubuntu@web1.prod
- clear; ssh ubuntu@web2.prod
and I just run `mux start blah` and that will either start a new tmux session and set up everything as I need, or resume an already running session.