一个TMUX会话中的多窗口比多个TMUX会话更合适?
我无法弄清楚一个TMUX会话中的多个窗口比多个TMUX会话更合适。如果我在一个TMUX会话中需要多个“窗口”,则总是使用多个窗格。
因此,我想知道在一个TMUX会话中是否有一些“真实”用例,或者只是提供的一种不止一种方法 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定这是否适合超级用户。我会给这个镜头:
空间:有时没有足够的屏幕房地产无法按照您想要的
来适合窗格中的应用
优先级:这纯粹是主观的,对我来说,第一个窗口是关键工作的地方。
关注点的分离:
亲自自定义事物,我将这些保留在我的第一个窗口中:
,在第二个窗口,可选的内容:隧道,芹菜 / RQ /任何作业服务器 /日志尾声。它们不会经常崩溃,原木也不那么有趣。
上面的内容太多了,无法放入一个窗口中。否则这将是超级嘈杂的。
我使用2个窗口将开发与我的软件项目中的文档分开。例如,VCSPULL: (披露:我是文件)。
此外,我将相互依存的项目加入单独的Windows中的同一TMUX会话。例如,使用
。例如,在开发Django项目时,我可能会保留一个包装,我在另一个窗口中写下修复程序,以便我可以重新启动服务器并相对较快地查看更改。
pip pip install -e .. /其他Project
,代码> 或yarn link
I'm not sure if this would fit Superuser better or not. I will give this a shot:
Space: Sometimes there's not enough screen real estate to fit the apps in the panes as you'd like
Prioritization: This is purely subjective, for me the 1st window is where the critical work happens.
Separation of concerns:
Personally I keep these in my first window:
In the 2nd window, optional stuff: tunnels, celery / rq / whatever job server / log tailing. They don't crash as often and their logs aren't as interesting.
The above would be too much to fit in a single window. Or it would be super noisy.
I use 2 windows to separate development from documentation in my software projects. As an example, vcspull: session file (Disclosure: I am creator of tmuxp, which launches tmux sessions in
.tmuxp.yaml
files).Further, I join interdependent projects to the same tmux session in separate windows. e.g. using
pip install -e ../otherproject
,npm link
, oryarn link
. e.g. when developing a django project, I may keep a package I'm writing a fix for in the other window so I can restart the server and see the changes relatively fast.