1. tmux 安装

1.1. 安装

wget https://github.com/tmux/tmux/releases/download/3.2/tmux-3.2.tar.gz
tar xzvf tmux-3.2.tar.gz
cd tmux-3.2
./configure
make && sudo make install

1.1.1. 安装报错

no acceptable C compiler found in $PATH

sudo yum install gcc

libevent not found

CentOS

sudo yum install libevent-devel

Ubuntu

sudo apt install libevent-dev

curses not found

CentOS

 sudo yum install ncurses-devel

Ubuntu

sudo apt-get install ncurses-dev

1.2. 配置

cd
git clone https://github.com/gpakosz/.tmux.git
ln -s -f .tmux/.tmux.conf
cp .tmux/.tmux.conf.local .

1.3. tmux 安装 Resurrect

resurrect

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

vim ~/.tmux.conf.local

set -g @tpm_plugins '          \
    tmux-plugins/tpm             \
    tmux-plugins/tmux-sensible   \
    tmux-plugins/tmux-resurrect  \
    tmux-plugins/tmux-continuum  \
'

set -g @resurrect-save 'S'
set -g @resurrect-restore 'R'
set -g @continuum-restore 'on'

run '~/.tmux/plugins/tpm/tpm'

在tmux中使用快捷键

prefix + shift + i安装插件 prefix + shift + s 保存 prefix + shift + r 重载

results matching ""

    No results matching ""