This code is Work in Progress, and until 0.1.0 release can be consider unusable.
Simple scritp to start predefined tmux nested session
Clone the repository link to tmuxgo from a folder you have in the path variable.
tmuxgo use jq for parsing json files.
Describe your session in json format. Main object defines the session, each object in open array defines widows.
{
"name": "project",
"location": "~/workspace/project",
"open": [
{
"name": "git"
},
{
"name": "vim",
"open": "vim"
},
{
"name": "grunt",
"open": "grunt serve"
},
{
"name": "zsh"
}
]
}
{
"name": "main",
"location": "~/workspace",
"open": [
{
"name": "project",
"location": "<relative location",
"open": [
...
]
},
...
]
}
To start the session:
$ tmuxgo session.json
$ tmuxgo session.json otherName