1 # Increase the scrollback
2 set -g history-limit 5000
6 bind-key C-a last-window
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
13 # Customize the status bars.
14 set-option -g status-style bg=default
15 set -g status-fg colour232
16 set -g status-left-length 24
17 set -g status-left '#[fg=green]#[fg=colour232, bg=green]#S#[fg=green, bg=default] #[default]'
18 set -g pane-border-format '#[bold]#[reverse]#{pane_current_command}#[default]'
19 setw -g window-status-current-format '#[fg=magenta]#[fg=colour232, bg=magenta]#{window_index}:#{window_name}#[fg=magenta, bg=default]#[default]'
20 setw -g window-status-format '#[fg=black]#[fg=colour232, bg=black]#{window_index}:#{window_name}#[fg=black, bg=default]#[default]'
21 # set-window-option -g window-status-current-style bg=magenta,fg=color232
22 # set-window-option -g window-status-style fg=colour232
23 set -g status-right '#[fg=green]#[fg=colour232, bg=green]#(bash ~/.dotfiles/tmux-segments/short-uptime)#[fg=green, bg=default] '
24 set -g status-right-length 70
26 # Better powerline highlighting.
27 set-window-option -g window-status-activity-style bold,underscore
29 # Set Activity monitoring.
30 setw -g monitor-activity on
31 set -g visual-activity on
33 # Vi keys in copy mode.
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'
44 set -g default-terminal "xterm-256color"
45 set-option -ga terminal-overrides ",xterm-256color:Tc"
48 set -g pane-border-status top
49 set -g pane-border-format '#[bold]#[reverse]#{pane_current_command}#[default]'
53 set -g set-titles-string ' #{session_name}'