]> git.r.bdr.sh - rbdr/dotfiles/blame_incremental - tmux.conf
Update tmux config for new version
[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 colour232
19set -g status-left-length 24
20set -g status-left '#[fg=colour232]#[bg=green]#S '
21set-window-option -g window-status-current-style bg=magenta,fg=colour232
22set-window-option -g window-status-style fg=colour232
23set -g status-right ' #[fg=colour232]#[bg=green] #(bash ~/.dotfiles/functions/short-uptime.bash)'
24set -g status-right-length 70
25
26# Better powerline highlighting.
27set-window-option -g window-status-activity-style bold,blink,underscore
28
29#Set Activity monitoring.
30setw -g monitor-activity on
31set -g visual-activity on
32
33# Vi keys in copy mode.
34setw -g mode-keys vi
35bind -r k run-shell 'tmux select-pane -U'
36bind -r j run-shell 'tmux select-pane -D'
37bind -r h run-shell 'tmux select-pane -L'
38bind -r l run-shell 'tmux select-pane -R'
39
40# Set color mode.
41set -g default-terminal "xterm-256color"
42set-option -ga terminal-overrides ",xterm-256color:Tc"