更改 tmux 保存会话的位置?
Changing the location where tmux saves sessions?
我经常连接到学校网络上的终端。我无法更改任何高于我的主目录的内容。是否有 .tmux.conf 命令允许我将我的会话保存在我的主目录内的目录中。
默认情况下 tmux 不保存它的会话。你需要一个像 tmuxinator or tmux-resurrect.
这样的插件
如果你use tmux-resurrect plugin to save your session. It saves by default into ~/.tmux/resurrect
directory. You can customize the location by adding this到你的.tmux.conf
set -g @resurrect-dir '/some/path'
tmux-resurrect can be combined with tmux-continuum 添加自动保存和恢复功能。
Features:
- continuous saving of tmux environment
- automatic tmux start when computer/server is turned on
- automatic restore when tmux is started
我经常连接到学校网络上的终端。我无法更改任何高于我的主目录的内容。是否有 .tmux.conf 命令允许我将我的会话保存在我的主目录内的目录中。
默认情况下 tmux 不保存它的会话。你需要一个像 tmuxinator or tmux-resurrect.
这样的插件如果你use tmux-resurrect plugin to save your session. It saves by default into ~/.tmux/resurrect
directory. You can customize the location by adding this到你的.tmux.conf
set -g @resurrect-dir '/some/path'
tmux-resurrect can be combined with tmux-continuum 添加自动保存和恢复功能。
Features:
- continuous saving of tmux environment
- automatic tmux start when computer/server is turned on
- automatic restore when tmux is started