-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
82 lines (69 loc) · 2.31 KB
/
tmux.conf
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Set ` as a control key
set-option -g prefix `
unbind-key C-b
bind-key C-a last-window
bind-key 0 last-window
bind-key ` send-prefix
bind-key a send-prefix
# we might need ` at some point, allow switching
# we can also send the prefix char with `-a
bind-key F11 set-option -g prefix C-a
bind-key F12 set-option -g prefix `
# Shell setup
set -g default-shell /bin/zsh
# Enable true color
set -g default-terminal "xterm-256color"
set -ga terminal-overrides ",xterm-256color:Tc"
set-option -g status-keys vi
set-option -g bell-action any
set-option -g set-titles on
set-option -g set-titles-string '#H:#S.#I.#P #W #T' # window number,program name,active (or not)
set-option -g visual-bell off
setw -g mode-keys vi
setw -g mouse off
setw -g monitor-activity off
# Bindings
bind e previous-window
bind f next-window
# Theme
set-option -g status-justify left
set-option -g status-bg default
set-option -g status-fg white
set-option -g status-left-length 40
set-option -g pane-active-border-fg blue
set-option -g pane-active-border-bg black
set-option -g pane-border-fg white
set-option -g pane-border-bg black
set-option -g message-fg black
set-option -g message-bg blue
setw -g window-status-bg default
setw -g window-status-fg white
setw -g window-status-current-fg blue
setw -g window-status-current-bg default
set-window-option -g window-status-current-format '#[bg=default,fg=blue,bold]#I#[bg=default,fg=blue] #[fg=blue]#W#[fg=dim]#F'
set-window-option -g window-status-format '#[bg=default,fg=white,bold]#I#[bg=default] #[fg=white]#W#[fg=dim]#F'
set -g status-left '#[fg=green]#S#[fg=blue] #[default]'
setw -g window-status-activity-bg colour2
set -g status-right '#[fg=blue, bold]%d %B #[fg=white]%H:%M#[default]'
set -g history-limit 4096
bind r source-file ~/.tmux.conf
# Open new tabs/splits with the current dir as base
bind c neww -c "#{pane_current_path}"
bind s split-window -v -c '#{pane_current_path}'
bind v split-window -h -c '#{pane_current_path}'
# Move around panes with hjkl
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resize panes
bind < resize-pane -L 9
bind > resize-pane -R 9
bind - resize-pane -D 3
bind = resize-pane -U 3
# Disable break pane and replace it with zoom
unbind !
# 0 is too far from ` ;)
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1