- 安裝
sudo apt-get install tmux
- 配置
安裝tmux后,為了美觀锌订,參考了這篇文章竹握。
首先安裝powerline,然后。
sudo apt-get install powerline
$ rm -rf .tmux
$ git clone https://github.com/gpakosz/.tmux.git
$ ln -s .tmux/.tmux.conf
$ cp .tmux/.tmux.conf.local .
- 配置問題
開啟鼠標(biāo)功能辆飘,網(wǎng)上有人說
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window off
但是使用C+b : set -g mouse-select-pane on 提示
unknow option mouse-select-pane.
谷歌后發(fā)現(xiàn)[這個](http://stackoverflow.com/questions/11832199/tmux-
set-g-mouse-mode-on-doesnt-work)
Mouse-mode has been rewritten. There's now no longer options for:
- mouse-resize-pane
- mouse-select-pane
- mouse-select-window
- mode-mouse
Instead there is just one option: 'mouse' which turns on mouse support
So this is what I'm using now in my .tmux.conf file - set -g mouse on
使用這個后啦辐,發(fā)現(xiàn)終端的內(nèi)容可以回滾了,可以用鼠標(biāo)選擇和移動pane了蜈项。