Declarative tmux session configuration for web development
- Quick setup via
npm
- Simple configuration
npm install --save-dev @dragunovartem99/flow
- Add the following to your project's
package.json
:
{
"scripts": {
"flow": "flow"
}
}
- Create
.flow.json
file in your project root
It might look like something like this:
{
"session": "my-session",
"windows": [
{
"name": "editor",
"command": "nvim ."
},
{
"name": "tests",
"command": "npm run test"
},
{
"name": "server",
"command": "npm run dev"
}
]
}
Another example from a real project
- Let the flow run:
npm run flow