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