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 ccreates a new window.MOD xwill close it.MOD j/kwill switch between windows. Also, your mouse will work.MOD #, where # is the window number, will move you to the appropriate window.MOD qwill exit dvtm.
MOD h/lwill resize the window laterally.MOD twill stack inactive windows vertically.MOD bwill stack inactive windows horizontally.MOD gwill stack windows in a grid.MOD spacetoggles 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 dvtmwill create and attach to a new session.- Do work.
Ctrl \to detach from the current session.dtach -a /tmp/sessionNameto 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: