Previous topic

brainfuck py

Next topic

The Book of Shaders

This Page

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' # 最后一行

配置生效,插件安装

<prefix>  :, 打开命令行, 输入source-file ~/.tmux.conf <prefix>  Shift + i, 进行安装

使用 tmux-resurrect 保存session

<prefix> Ctrl+s, 保存session <prefix> Ctrl+r, 恢复会话

session被保存在~/.tmux/resurrect 目录下