Ideally, I’d like to simply save something that looks like the below, or at least be able to script it out in a bash script so I could just launch a tmux session that looks like:
I use https://github.com/tony/tmuxp and I like it. You can code a yaml file or save sessions
@ravivijay … really great recommendation! Way to represent group 103!
FWIW, below is my config I’m using:
{
"session_name": "fastai",
"windows": [
{
"window_name": "dev window",
"layout": "main-vertical",
"options": {
"main-pane-width": 120
},
"shell_command_before": [
"cd ~/development/_training/ml/fastai-course",
"source activate fastai"
],
"panes": [
{
"shell_command": [
"clear"
]
},
{
"shell_command": [
"clear",
"jupyter notebook"
]
},
{
"shell_command": [
"clear",
"watch -n 0.5 nvidia-smi"
]
}
]
}
]
}
Updated my install bash script used to setup my AWS instance to install tmuxp and a version of this configuration if anyone is interested here: https://github.com/ohmeow/aws_setup
Thanks for sharing! BTW @wgpubs you might find this helpful for simplifying your sh script a bit: http://tldp.org/LDP/abs/html/here-docs.html
Wow tmuxp is amazing! I’ve been using bash scripst but this will help me be much more organized
I would also recommend tmuxinator. Very friendly and this was the solution used in the tmux book. Which is a book that I would also recommend if anyone feels like they want to go deeper on this
I knew there had to be a better way to build that .json file. Thanks!