summaryrefslogtreecommitdiff
path: root/tmux.conf
blob: efe81f3d3fc7dd21dd5f9d6a9cbb36433621d9bd (plain)
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
42
43
44
45
46
47
48
# Remap prefix
set -g prefix C-o
unbind C-b
bind C-o send-prefix

# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf

# address vim mode switching delay (http://superuser.com/a/252717/65504)
set -s escape-time 0

# increase scrollback buffer size
set -g history-limit 50000

# tmux messages are displayed for 4 seconds
set -g display-time 4000

# refresh 'status-left' and 'status-right' more often
set -g status-interval 5

# Emacs-ish pane cycling
unbind o
bind o select-pane -t :.+

# Set the terminal
set -g default-terminal "tmux"

# Use mouse highlighting
set -g mouse on

# focus events enabled for terminals that support them
set -g focus-events on

# Use windows like tabs
bind -n S-down new-window
bind -n S-left prev
bind -n S-right next
bind -n C-left swap-window -t -1
bind -n C-right swap-window -t +1

# Status bar
# set -g status-right '#{prefix_highlight} | %a %Y-%m-%d %H:%M'

# Use fish
set -g default-shell /usr/bin/fish

# TODO: put this in Git