Live data from Hacker News

My self-contained Tmux configuration

github.com

1–10 of 24 posts

Re: My self-contained Tmux configuration

#2
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.

Re: My self-contained Tmux configuration

#4
post #2

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.

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)

Re: My self-contained Tmux configuration

#7
BTW I've been asked why I don't use resize-pane -Z.

The "maximize any pane to a new window with +" feature is different from stock resize-pane -Z as it allows you to further split a maximized pane. Also, you can maximize a pane to a new window, then change window, then go back and the pane is still in maximized state in its own window. You can then minimize a pane by using + either from the source window or the maximized window.

See it in action: http://pempek.net/images/original/maximizing-tmux-pane-new-w...

Re: My self-contained Tmux configuration

#8
post #2

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.

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...

Re: My self-contained Tmux configuration

#9
A lovely set-up. I may grab a few tidbits for my own. I'm also doing a powerline (airline) inspired bar, but I put mine at the top so I don't get it confused in vim. I really like the maximize/promote to window feature.

Here's my conf for reference: https://github.com/jamestomasino/dotfiles/blob/master/bash/....

Post reply on HN