aboutsummaryrefslogtreecommitdiff
path: root/mac/tmux.conf
blob: c5b8b55d98087bf69a4afaceb1149fe6518f8a3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -- general -------------------------------------------------------------------
#set -g default-terminal "xterm-256color"
set -g default-terminal "screen-256color"
set -as terminal-overrides ",*:U8=0"
set -s escape-time 10 # faster command sequences
set -s focus-events on

run-shell "powerline-daemon -q"
source "/usr/local/lib/python3.7/site-packages/powerline/bindings/tmux/powerline.conf"

# -- display -------------------------------------------------------------------
set -g base-index 1
setw -g pane-base-index 1
setw -g automatic-rename on # rename window to reflect current program
set -g renumber-windows on # renumber windows when a window is closed

set -g display-panes-time 800 # slightly longer pane indicators display time
set -g display-time 1000      # slightly longer status messages display time

set -g status-interval 10     # redraw status line every 10 seconds

set-option -g default-shell /usr/local/bin/zsh

set-option -g display-panes-active-colour colour33
set-option -g display-panes-colour colour166

# activity
set -g monitor-activity on
set -g visual-activity off

# -- navigation ----------------------------------------------------------------

# Set window notification
setw -g monitor-activity on
set -g visual-activity on

unbind C-b
set -g prefix C-a

bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D

# Bells
set -g visual-bell on
set -g bell-action any

# Scroll in shell
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set -wg xterm-keys       1