Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Enabled mouse support

  • Loading branch information...
commit 29644d08d628c4da425010ab5f222f139f5d86d3 1 parent 360260c
@Happy-Dude authored
Showing with 12 additions and 4 deletions.
  1. +12 −4 tmux.conf
View
16 tmux.conf
@@ -68,6 +68,9 @@
##### [#A3A3A3] [#7A7A7A] [#356A35] [#D1D1D1]
+# Set the default terminal string
+set-option -g default-terminal "screen-256color"
+
# Rebind action key; default is C-b
# Compromise: C-b is used by certain apps; C-q should be okay...
# Wanted to bind to capital 'B', but didn't work?
@@ -76,9 +79,6 @@ set-option -g prefix C-q
unbind-key C-b
bind-key C-q send-prefix
-# Set the default terminal string
-set-option -g default-terminal "screen-256color"
-
# Enable titles and configure them
set-option -g set-titles on
set-option -g set-titles-string "#(whoami)@#H: #(echo $PWD) \"#S\" (#W)#F [#I:#P]"
@@ -134,7 +134,7 @@ set-window-option -g automatic-rename
# Rebind pane split shortcuts
unbind % # Remove default binding for splitting vertically
-unbind '"' # Remove default binding for splitting horizontally
+unbind '"' # Remove default binding for splitting horizontally
bind-key - split-window -v # Horizontal split
bind-key | split-window -h # Vertical split
@@ -145,6 +145,14 @@ bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
+# Enable mouse support
+set-option -g mode-mouse on
+set-option -g mouse-utf8 on
+set-window-option -g mouse-select-window on
+set-window-option -g mouse-select-pane on
+set-window-option -g mouse-resize-pane on
+
+
# Eric's bindings with Meta key -- need to find out more about this; maybe I won't have conflicts..?
# Key bindings
# M = option with Terminal.app set to 'Use option as meta key', this prevents stomping most application's shortcuts
Please sign in to comment.
Something went wrong with that request. Please try again.