]> git.r.bdr.sh - rbdr/dotfiles/blame_incremental - tmux.conf
Merge master
[rbdr/dotfiles] / tmux.conf
... / ...
CommitLineData
1# Allow use of buffer
2set-option -g default-command "reattach-to-user-namespace -l zsh"
3
4#Increase the scrollback
5set -g history-limit 5000
6
7#Screen-like prefix.
8set -g prefix C-a
9bind-key C-a last-window
10
11#Better bindings for window split
12unbind % # Remove default binding since we’re replacing
13bind | split-window -h
14bind - split-window -v
15
16#Customize the status bars.
17set -g status-bg cyan
18set -g status-fg white
19set -g status-left-length 24
20set -g status-left '#[fg=black]#[bg=white]#H-#S '
21set-window-option -g window-status-current-bg red
22set-window-option -g window-status-current-fg colour232
23set-window-option -g window-status-fg colour231
24set -g status-right ' #[fg=black]#[bg=white]#(short-uptime)'
25set -g status-right-length 70
26
27# Better powerline highlighting.
28set-window-option -g window-status-activity-attr bold,blink,underscore
29
30#Set Activity monitoring.
31setw -g monitor-activity on
32set -g visual-activity on
33
34# Vi keys in copy mode.
35setw -g mode-keys vi
36bind -r k run-shell 'tmux select-pane -U'
37bind -r j run-shell 'tmux select-pane -D'
38bind -r h run-shell 'tmux select-pane -L'
39bind -r l run-shell 'tmux select-pane -R'
40
41# Set color mode.
42set -g default-terminal "xterm-256color"
43set-option -ga terminal-overrides ",xterm-256color:Tc"