-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtmux.conf
29 lines (25 loc) · 966 Bytes
/
tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# GPI Starter tmux.conf
#
# Install with:
#
# curl https://raw.githubusercontent.com/cmugpi/dotfiles/master/tmux.conf > ~/.tmux.conf
#
# See the comments for explanations!
#
# Use the mouse!
set -g mouse on
# Fix mouse scrolling
# (this used to be default behavior, but now it isn't)
# See http://apple.stackexchange.com/questions/218553
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
# Easier pane switching:
# Ctrl + <hjkl> to switch (left|down|up|right)
# Note: don't use the prefix! Just Ctrl + <hjkl>
bind-key -n C-h select-pane -L
bind-key -n C-j select-pane -D
bind-key -n C-k select-pane -U
bind-key -n C-l select-pane -R
# We overwrote Ctrl + L. By default, this clears the screen.
# Now, we'll have to type "prefix, Ctrl + L" to get the old behavior back
bind C-l send-keys 'C-l'