-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
46 lines (39 loc) · 1.28 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
# Allow either Ctrl-A or Ctrl-B. I prefer to use Ctrl-A
set-option -g prefix C-a
set-option -g prefix2 C-b
bind-key C-b last-window
set -g default-terminal "screen-256color"
# Shortcuts for splitting windows, resizing panes and navigating between them
bind | split-window -h
bind h split-window -h
bind v split-window -v
bind _ split-window -v
bind = resize-pane -U 2
bind - resize-pane -D 2
bind < resize-pane -L 2
bind > resize-pane -R 2
set-window-option -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Reload config
bind R source-file ~/.tmux.conf
# Status bar
set -g status-right '#[fg=black]#(uptime | cut -d "," -f 2-)'
set -g status-bg cyan
set-window-option -g window-status-current-style bg=magenta
# quick pane cycling
unbind ^A
bind ^A select-pane -t :.+
# Use Ctrl-A p to paste
bind p paste-buffer
# Send !!<enter> to the main.1 window to rerun the last command
bind ! send-keys -t main !! C-m
bind @ send-keys -t .+ !! C-m C-m
# Set non active pane to be grey
# See colour options here: https://i.stack.imgur.com/e63et.png
# set -g window-style 'fg=colour247,bg=colour233'
# set -g window-active-style 'fg=colour250,bg=black'
set -g window-style 'fg=colour247,bg=colour233'
set -g window-active-style 'fg=colour250,bg=colour233'