aboutsummaryrefslogtreecommitdiff
path: root/.tmux.conf
blob: a2a9a74abdb56207bcb9c127acaafeab8d1d9639 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Debian package: powerline

# Plugins
#run-shell ~/src/git/notmine/tmux-plugins/tmux-pain-control/pain_control.tmux
#run-shell ~/src/git/notmine/tmux-plugins/tmux-copycat/copycat.tmux
#run-shell ~/src/git/notmine/tmux-plugins/tmux-yank/yank.tmux

# Prefix
set -g prefix C-v
unbind-key C-b
bind-key C-v send-prefix

## Binds
bind e set-window-option synchronize-panes

bind-key -n C-t new-window

bind-key -n C-PPage previous-window
bind-key -n C-NPage next-window


## Misc
# 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

# upgrade $TERM
set -g default-terminal "screen-256color"

# emacs key bindings in tmux command prompt (prefix + :) are better than
# vi keys, even for vim users
set -g status-keys emacs
set -g mode-keys emacs

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

# super useful when using "grouped sessions" and multi-monitor setup
setw -g aggressive-resize on


## Navigation
set -g base-index 1         # start windows numbering at 1
setw -g pane-base-index 1   # make pane numbering consistent with windows

setw -g automatic-rename on # rename window to reflect current program
set -g renumber-windows on  # renumber windows when a window is closed

set -g set-titles on                        # set terminal title
set -g set-titles-string '#h ❐ #S ● #I #W'

set -g display-panes-time 800 # slightly longer pane indicators display time
set -g display-time 1000      # slightly longer status messages display time

set -g status-interval 10     # redraw status line every 10 seconds

# clear both screen and history
bind -n C-l send-keys C-l \; run 'sleep 0.1' \; clear-history

# activity
set -g monitor-activity on
set -g visual-activity off

# Enable mouse features
set -g mouse on

# Debian Powerline
source '/usr/share/powerline/bindings/tmux/powerline.conf'
nihil fit ex nihilo