brew install dvtm dtach
To begin, start dvtm with dvtm
Ctrl g
is the default modifier for dvtm. You'll prefix every command with it.
To change the default mod, run dvtm with the -m
flag. IE: dvtm -m a
, will set the modifier to Ctrl a
MOD c
creates a new window.MOD x
will close it.MOD j/k
will switch between windows. Also, your mouse will work.MOD #
, where # is the window number, will move you to the appropriate window.MOD q
will exit dvtm.
MOD h/l
will resize the window laterally.MOD t
will stack inactive windows vertically.MOD b
will stack inactive windows horizontally.MOD g
will stack windows in a grid.MOD space
toggles between layouts.MOD .
hides a window.
When I start a project, I'll open a few windows. Start and minimize my watch processes. Get to work.
My dtach workflow is simple.
dtach -A /tmp/sessionName -r winch dvtm
will create and attach to a new session.- Do work.
Ctrl \
to detach from the current session.dtach -a /tmp/sessionName
to reattach.
There is more to it, but this takes care of 80% of what I do. If you want to dig in, check out the following: