Hacker News new | ask | show | jobs
by deweller 4307 days ago
On the topic of tmux, has anyone created a nice way to save an active tmux configuration layout?

tmuxinator and the like let you specify the configurations ahead of time, but I want to save an active layout for later use. I haven't found a tool for that yet.

4 comments

I've just published a tmux plugin that let's you save tmux environment and restore it later.

https://github.com/tmux-plugins/tmux-resurrect

I was looking on doing the same but ended up doing some hackish bash script, as in:

byobu new-session -d; byobu split-window -d; byobu split-window -dh; byobu

Getting it to run a command automatically on each panel got too complicated so I settled on that. (byobu is a preconfigured tmux from ubuntu)

I've got a solution that is halfway working. It saves sessions, windows, and paths, but not panes:

https://github.com/jamestomasino/bin/blob/master/tmux-sessio...