-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
81 lines (64 loc) · 1.92 KB
/
tmux.conf
File metadata and controls
81 lines (64 loc) · 1.92 KB
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
# bind Ctrl-a to the prefix key - suck it TMUX SCREEN 4EVAR
set-option -g prefix C-a
unbind C-b
bind C-a send-prefix
# change the default delay tmux waits for before sending keystrokes to something really short
set -sg escape-time 1
# count from 1
set -g base-index 1
setw -g pane-base-index 1
# remap splits to be more asthetic
bind | split-window -h
bind - split-window -v
# make movement moar movement like
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# windows too
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# resizing like a VIM boss
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# I got 256 colors but white ain't one
set -g default-terminal "screen-256color"
# set the status bar colors
set -g status-fg white
set -g status-bg colour32 # a pretty blue, I feel so inspired
# colour the active and inactive windows differently
# the inactive window(s)
set -g window-status-fg colour242 # kinda grey
set -g window-status-bg default
set -g window-status-attr dim
# the active window
set -g window-status-current-fg white
set -g window-status-current-bg default
set -g window-status-current-attr bright
# colour the pane separators too
set -g pane-border-fg colour242
set -g pane-border-bg black
# the active pane
set -g pane-active-border-fg white
set -g pane-active-border-bg white
# the command message bar
set -g message-bg colour222
# copy mode sucka!
setw -g mode-keys vi
setw -g mode-mouse on
# remap the copy and paste command to be moar vim like
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
bind -t vi-copy 'v' 'begin-selection'
bind -t vi-copy 'y' 'copy-selection'
# set up the status bar
set -g status-left-length 40
set -g status-right-length 40
set -g status-right "(#h) %b-%d %R"
set -g status-utf8 on
# reload this file
bind r source-file ~/.tmux.conf \; display "OMG I FEEL LIKE A NEW CONFIG!"