Live data from Hacker News

Show HN: Restore tmux environment after a system restart

github.com

1–10 of 48 posts

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

#3
This looks like a cool project, although I personally prefer separate tmux sessions for each project.

Also, am I missing something, or does this really execute the last command for each pane/window which had a process other than shell running? I can imagine a few potentially dangerous situations if this is how it works.

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

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

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

#5
post #3

This looks like a cool project, although I personally prefer separate tmux sessions for each project. Also, am I missing something, or does this really execute the last command for each pane/window which had a process other than shell running? I can imagine a few potentially dangerous situations if this is how it works.

It pretty clearly says it only runs a very small subset of commands.

"Only a conservative list of programs is restored by default: vi vim emacs man less more tail top htop irssi."

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

#6
post #5
post #3

This looks like a cool project, although I personally prefer separate tmux sessions for each project. Also, am I missing something, or does this really execute the last command for each pane/window which had a process other than shell running? I can imagine a few potentially dangerous situations if this is how it works.

It pretty clearly says it only runs a very small subset of commands. "Only a conservative list of programs is restored by default: vi vim emacs man less more tail top htop irssi."

Yes, and for the paraniod there's an option that disables restoring any command.

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

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

This is the use case of Foreman. https://github.com/ddollar/foreman

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

#9
post #7
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).

This is the use case of Foreman. https://github.com/ddollar/foreman

or Goreman. https://github.com/mattn/goreman

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

#10
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 use tmuxinator to launch services I need, then I just kill the session when I'm done.

https://github.com/tmuxinator/tmuxinator

Post reply on HN