Live data from Hacker News

Show HN: Restore tmux environment after a system restart

github.com

11–20 of 48 posts

Re: Show HN: Restore tmux environment after a system restart

#11
post #4

BTW do people use tmux/screen to start multiple apps for development? I'm looking for a way to start nginx/sass watcher/js builder/web app in a split screen, and also stop them all with one command (which would send ctrl-c to all windows). Now I just use tabs (OSX).

Check out tmuxinator: https://github.com/tmuxinator/tmuxinator. You can create configurations for your projects that specify windows, panes, which apps to run, etc. It's great for starting all the servers/shells/workers required for a project.

Re: Show HN: Restore tmux environment after a system restart

#13
post #4

BTW do people use tmux/screen to start multiple apps for development? I'm looking for a way to start nginx/sass watcher/js builder/web app in a split screen, and also stop them all with one command (which would send ctrl-c to all windows). Now I just use tabs (OSX).

I just use a shell script based on this SO answer. https://stackoverflow.com/questions/9023164/in-bash-how-can-...

The only sort of problem with it is that the output gets merged with each other. You can quite easily figure out what is what though.

Re: Show HN: Restore tmux environment after a system restart

#17
Great! Now can someone tell me how to configure tmux so that I can have two connected term emulators use multiple virtual consoles in one session? Screen allows you to do this and I've been searching for a way to get tmux to behave the same way.

(In fact, I've had a real problem getting tmux to behave well at all when multiple term emulators are connected to the same session. I've had weird window resizing problems.)

Re: Show HN: Restore tmux environment after a system restart

#18
post #17

Great! Now can someone tell me how to configure tmux so that I can have two connected term emulators use multiple virtual consoles in one session? Screen allows you to do this and I've been searching for a way to get tmux to behave the same way. (In fact, I've had a real problem getting tmux to behave well at all when multiple term emulators are connected to the same session. I've had weird window resizing problems.)

One workaround is to detach the other sessions when you connect.

tmux a -d

Re: Show HN: Restore tmux environment after a system restart

#19
post #17

Great! Now can someone tell me how to configure tmux so that I can have two connected term emulators use multiple virtual consoles in one session? Screen allows you to do this and I've been searching for a way to get tmux to behave the same way. (In fact, I've had a real problem getting tmux to behave well at all when multiple term emulators are connected to the same session. I've had weird window resizing problems.)

From the 2nd, 3rd, etc terminal you can see the list of sessions with 'tmux ls'. After that, attach to one of them with 'tmux a -t [session-number]'.

Re: Show HN: Restore tmux environment after a system restart

#20
post #17

Great! Now can someone tell me how to configure tmux so that I can have two connected term emulators use multiple virtual consoles in one session? Screen allows you to do this and I've been searching for a way to get tmux to behave the same way. (In fact, I've had a real problem getting tmux to behave well at all when multiple term emulators are connected to the same session. I've had weird window resizing problems.)

One workaround is to detach the other sessions when you connect. tmux a -d

The bottom of this page seems to deal with this issue: http://mutelight.org/practical-tmux
Post reply on HN