浏览代码

add more tmux mouse support options

Found from
http://blog.hawkhost.com/2010/07/02/tmux-%E2%80%93-the-terminal-multiplexer-part-2/
Don't know that the difference between `set-window-option` and `set-option` are,
for `mode-mouse on`.
Weiyi Lou 13 年之前
父节点
当前提交
ba42f7ffec
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      tmux/tmux.conf

+ 7 - 1
tmux/tmux.conf

@@ -16,8 +16,14 @@ set-option -g visual-activity on
 # current window, rather than the smallest session to which it is attached.
 set-window-option -g aggressive-resize on
 
-# mouse support (for scrollback)
+# Mouse Support! (for scrollback, and lazy manipulation of windows/panes)
+# At least with iTerm2, this plays very well with vim mouse support :D Yay!
+# Note: text-selection by default does a tmux copy (paste with prefix+]).
+# Hold alt/meta/option for system selection/copy.
 set-option -g mode-mouse on
+set-option -g mouse-select-pane
+set-option -g mouse-resize-pane on
+set-option -g mouse-select-window on
 
 # act like vim
 set-option -g status-keys vi