一个TMUX会话中的多窗口比多个TMUX会话更合适?

发布于 2025-01-31 17:30:09 字数 135 浏览 2 评论 0 原文

我无法弄清楚一个TMUX会话中的多个窗口比多个TMUX会话更合适。如果我在一个TMUX会话中需要多个“窗口”,则总是使用多个窗格。

因此,我想知道在一个TMUX会话中是否有一些“真实”用例,或者只是提供的一种不止一种方法

I can't figure out when multiple-window in one tmux session is more appropriate than multiple tmux session. If I need multiple "window" in one tmux session I always use multiple-pane instead.

So I was wondering is there some "real" use case for multiple-window in one tmux session or it just provides as there is more than one way to do things?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

捂风挽笑 2025-02-07 17:30:09

我不确定这是否适合超级用户。我会给这个镜头:

  1. 空间:有时没有足够的屏幕房地产无法按照您想要的

    来适合窗格中的应用

  2. 优先级:这纯粹是主观的,对我来说,第一个窗口是关键工作的地方。

  3. 关注点的分离:

    • 前端 /后端< / li>
    • 开发和构建服务器(例如芹菜),其中输出不有趣
    • 临时主题:例如自定义〜/.dotfiles 自定义事物

亲自自定义事物,我将这些保留在我的第一个窗口中:

  1. 编辑器(主窗格)
  2. shell(用于命令)
  3. 构建器(WebPack,lollup等)
  4. HTTP服务器(用于日志并根据需要重新启动)

,在第二个窗口,可选的内容:隧道,芹菜 / RQ /任何作业服务器 /日志尾声。它们不会经常崩溃,原木也不那么有趣。

上面的内容太多了,无法放入一个窗口中。否则这将是超级嘈杂的。

我使用2个窗口将开发与我的软件项目中的文档分开。例如,VCSPULL: (披露:我是文件)。

此外,我将相互依存的项目加入单独的Windows中的同一TMUX会话。例如,使用 pip pip install -e .. /其他Project 代码> yarn link 。例如,在开发Django项目时,我可能会保留一个包装,我在另一个窗口中写下修复程序,以便我可以重新启动服务器并相对较快地查看更改。

I'm not sure if this would fit Superuser better or not. I will give this a shot:

  1. Space: Sometimes there's not enough screen real estate to fit the apps in the panes as you'd like

  2. Prioritization: This is purely subjective, for me the 1st window is where the critical work happens.

  3. Separation of concerns:

    • Frontend / backend
    • Development and build servers (e.g. celery) where the output isn't interesting
    • Temporary topics: e.g. customizing ~/.dotfiles to customize thing

Personally I keep these in my first window:

  1. Editor (main pane)
  2. Shell (for commands)
  3. Builder (webpack, rollup, etc)
  4. HTTP Server (for logs and restarting it as needed)

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, or yarn 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文