TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Restore tmux environment after a system restart

241 点作者 brunosutic超过 10 年前

16 条评论

pixelmonkey超过 10 年前
I also really love tmuxp, which lets you save tmux sessions as json files and save&#x2F;reload them later. Great for setting up tmux sessions for different workflows.<p><a href="http://tmuxp.readthedocs.org/" rel="nofollow">http:&#x2F;&#x2F;tmuxp.readthedocs.org&#x2F;</a>
kacy超过 10 年前
Holy. Wow. This is the most exciting thing that I&#x27;ve seen this weekend. I&#x27;ve created hacks on hacks to get around this problem. I&#x27;m SO happy about this! Thank you!
Bootvis超过 10 年前
I&#x27;ve visited HN for a long time and this is the first submission I can say of:<p>I need this in my life.<p>Thanks
ixtli超过 10 年前
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&#x27;ve been searching for a way to get tmux to behave the same way.<p>(In fact, I&#x27;ve had a real problem getting tmux to behave well at all when multiple term emulators are connected to the same session. I&#x27;ve had weird window resizing problems.)
评论 #8246792 未加载
评论 #8247070 未加载
评论 #8246755 未加载
评论 #8246754 未加载
swah超过 10 年前
BTW do people use tmux&#x2F;screen to start multiple apps for development?<p>I&#x27;m looking for a way to start nginx&#x2F;sass watcher&#x2F;js builder&#x2F;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).
评论 #8246498 未加载
评论 #8246647 未加载
评论 #8246486 未加载
评论 #8252392 未加载
评论 #8246490 未加载
评论 #8247443 未加载
coderzach超过 10 年前
Wow, this is great! I&#x27;ve gone weeks without software updates because I didn&#x27;t want to lose my tmux session.
ghshephard超过 10 年前
I just installed it and played around with it for a bit - it&#x27;s a really nice - but what I would kill for is something that would restore tmux server state - including the various scroll-back-buffers.<p>One of the few reasons I still drop out of tmux, and switch over to Terminal.app (iTerm2 might do this as well natively) - is when you have a system crash or Kernel Panic (which happens all to often with OS X -weekly basis, or daily if I&#x27;m plugging&#x2F;unplugging the USB -&gt; Serial adapters), and OS X reboots - Terminal.app restores all of my history buffers - so I don&#x27;t lose any of the work in my screens.<p>Yes, I know script is a good way of doing this - but When you are opening a dozen or so windows, it&#x27;s nice to be able to just scroll back in your history to see what you are working on.<p>Saving the scroll-back buffer is possible, (<a href="https://github.com/tmux-plugins/tmux-logging" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tmux-plugins&#x2F;tmux-logging</a>) - I just don&#x27;t know if there is any way of restoring it.<p>Even if I could just do this prior to doing something dangerous (like unplugging a USB cable), that would be great.<p>I just noticed, that <i>both</i> of these plugins are by the same developer, brunosutic, - so perhaps we&#x27;ll see this feature in the future. If so, super excited! :-)
评论 #8272786 未加载
golfadas超过 10 年前
I thought session restore for tmux was awesome, and then I got to know that tmux has a plugin manager and fuzzy history search! brunosutic, you made my day.
spindritf超过 10 年前
Great script and timing. For those who missed it, this was just requested on HN yesterday <a href="https://news.ycombinator.com/item?id=8243157" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8243157</a><p>Screencast is a nice touch.
lobster_johnson超过 10 年前
Tangentially, anyone know how to run tmux (or screen) so that SSH sessions automatically attach?<p>Ie., I want every interactive connection to automatically attach to a session on the server if one exists, otherwise create one, so that when I disconnect or quit, my shell stays.<p>I tried to hack a solution using .zshrc a while ago, but it just didn&#x27;t work properly and&#x2F;or didn&#x27;t handle all the edge cases, I forget exactly.
评论 #8247893 未加载
评论 #8249499 未加载
fest超过 10 年前
This looks like a cool project, although I personally prefer separate tmux sessions for each project.<p>Also, am I missing something, or does this really execute the last command for each pane&#x2F;window which had a process other than shell running? I can imagine a few potentially dangerous situations if this is how it works.
评论 #8246420 未加载
thirdtruck超过 10 年前
Thanks! I&#x27;ve been meaning to use tmux more and this will make it all the easier.
0xeeeeeeee超过 10 年前
This looks really cool. There are a lot of people (like me) who live in tmux and I&#x27;m really surprised this hadn&#x27;t been done earlier.
chengl超过 10 年前
Cool stuff. But doesn&#x27;t work for me. It&#x27;s not saving when I press prefix+Alt+s. Anyone with the same experience?<p>I&#x27;m on MBP, tmux 1.9a.
评论 #8247240 未加载
评论 #8247085 未加载
cookiecaper超过 10 年前
I was just looking for something like this a couple of weeks ago. Thanks for sharing!
superfunc超过 10 年前
sidenote: your terminal color setup is rad.<p>edit: I&#x27;d also like to say, I am really enjoying the trend of people including a video demo of their applications.