-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
41 lines (32 loc) · 994 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
30
31
32
33
34
35
36
37
38
39
40
41
# Rebind prefix
unbind C-b
set-option -g prefix C-f
bind-key C-f send-prefix
# Set history limit for terminal scrolling
set-option -g history-limit 262144
# Set copy mode mode-keys to vi
set-option -g mode-keys vi
# set first window to index 1 (not 0) to map more to the keyboard layout...
set-option -g base-index 1
set-window-option -g pane-base-index 1
set-window-option -g mouse on
# Mouse mode keys
set-option -g mouse on
bind m set -g mouse on
bind M set -g mouse off
# Source bindig for this file
# force a reload of the config file
unbind R
bind R source-file ~/.tmux.conf \; display "Reloaded!"
# New windows/pane in $PWD
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# Patch for OS X pbpaste and pbcopy under tmux.
set-option -g default-command {
if type -P reattach-to-user-namespace; then
reattach-to-user-namespace -l $SHELL || $SHELL
else
exec -l $SHELL
fi
}