# tmux ## 会话保存 包管理 20200120 修改为使用tpm管理tmux插件, 修改.tmux.conf 插件都在~/.tmux/plugins 下面, 手动git clone 包到这个目录 ``` set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-continuum' set -g @continuum-restore 'on' run -b '~/.tmux/plugins/tpm/tpm' # 最后一行 ``` 配置生效,插件安装 ` :`, 打开命令行, 输入source-file ~/.tmux.conf ` Shift + i`, 进行安装 使用 tmux-resurrect 保存session ` Ctrl+s`, 保存session ` Ctrl+r`, 恢复会话 session被保存在~/.tmux/resurrect 目录下