curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz tar -xvzf libevent-2.0.22-stable.tar.gz cd libevent-2.0.22-stable ./configure --prefix=/usr/local make && make install
curl -OL https://github.com/tmux/tmux/releases/download/2.1/tmux-2.1.tar.gz tar -xvzf tmux-2.1.tar.gz cd tmux-2.1 LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local make && make install
unbind C-a set -g prefix C-b set -g mouse on ## 使用ctrl-b : -> set mouse off 关闭使用鼠标 setw -g mode-keys vi setw -g utf8 on set -g base-index 1 set -g pane-base-index 1 set -g monitor-activity off set -g monitor-silence 0 set -g bell-action none
set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sidebar' set -g @plugin 'tmux-plugins/tmux-logging' run '~/.tmux/plugins/tpm/tpm'
常用命令
1 2 3 4
## 新建一个新的tmux tmux new-session -s name ## -2 是支持256色,否则vim的256色不支持 tmux -2 -f ~/.tmux.conf attach-session -t name