]>
Commit | Line | Data |
---|---|---|
1 | # Increase the scrollback | |
2 | set -g history-limit 5000 | |
3 | ||
4 | # Screen-like prefix. | |
5 | set -g prefix C-a | |
6 | bind-key C-a last-window | |
7 | ||
8 | # Better bindings for window split | |
9 | unbind % # Remove default binding since we’re replacing | |
10 | bind | split-window -h | |
11 | bind - split-window -v | |
12 | ||
13 | # Customize the status bars. | |
14 | set -g status-bg cyan | |
15 | set -g status-fg colour232 | |
16 | set -g status-left-length 24 | |
17 | set -g status-left '#[fg=colour232]#[bg=green]#S ' | |
18 | set-window-option -g window-status-current-style bg=magenta,fg=color232 | |
19 | set-window-option -g window-status-style fg=colour232 | |
20 | set -g status-right ' #[fg=colour232]#[bg=green] #(bash ~/.dotfiles/tmux-segments/short-uptime)' | |
21 | set -g status-right-length 70 | |
22 | ||
23 | # Better powerline highlighting. | |
24 | set-window-option -g window-status-activity-style bold,underscore | |
25 | ||
26 | # Set Activity monitoring. | |
27 | setw -g monitor-activity on | |
28 | set -g visual-activity on | |
29 | ||
30 | # Vi keys in copy mode. | |
31 | setw -g mode-keys vi | |
32 | bind -r k run-shell 'tmux select-pane -U' | |
33 | bind -r j run-shell 'tmux select-pane -D' | |
34 | bind -r h run-shell 'tmux select-pane -L' | |
35 | bind -r l run-shell 'tmux select-pane -R' | |
36 | ||
37 | # Mouse Mode | |
38 | set -g mouse on | |
39 | ||
40 | # Set color mode. | |
41 | set -g default-terminal "xterm-256color" | |
42 | set-option -ga terminal-overrides ",xterm-256color:Tc" |