3 ms·
Take a look at tmux and tmuxinator. I have a config that looks like this: # ~/.tmuxinator/blah.yml name: blah root: ~/Development/blah windo
by madeofpalk 12y ago
Take a look at tmux and tmuxinator.
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.