我经常连接到学校网络上的终端。任何高于我的主目录的东西我都无法更改。是否有 .tmux.conf 的命令可以让我将 session 保存在我的主目录内的目录中。
最佳答案
默认情况下 tmux 不保存其 session 。你需要一个像 tmuxinator 这样的插件或 tmux-resurrect .
如果您 use tmux-resurrect插件来保存您的 session 。它默认保存到 ~/.tmux/resurrect
目录。您可以自定义位置by adding this给您的 .tmux.conf
set -g @resurrect-dir '/some/path'
tmux-resurrect可以与tmux-continuum结合使用添加自动保存和恢复功能。
Features:
- continuous saving of tmux environment
- automatic tmux start when computer/server is turned on
- automatic restore when tmux is started
关于terminal - 更改 tmux 保存 session 的位置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43443355/