tmux+ubuntu 64 安装

  1. 安装

sudo apt-get install tmux

  1. 配置
    安装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 .

  1. 配置问题
    开启鼠标功能,网上有人说

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.

谷歌后发现[这个](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

使用这个后,发现终端的内容可以回滚了,可以用鼠标选择和移动pane了。

你可能感兴趣的:(tmux+ubuntu 64 安装)