-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
57 lines (44 loc) · 1.37 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
# Global settings
# Set prefix key to Ctrl-a
unbind-key C-b
set-option -g prefix C-a
# send the prefix to client inside window
bind-key a send-prefix
# reload settings
bind-key R source-file ~/.tmux.conf
# mouse stuff
set-option -g mouse on
bind-key -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
bind-key -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
# color stuff
set -g default-terminal "screen-256color"
set -g status-bg colour235
# last-active window
bind-key C-a last-window
# vim movements for switching pane
unbind h
unbind j
unbind k
unbind l
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# More straight-forward key bindings for splitting
unbind %
bind | split-window -h
unbind '"'
bind - split-window -v
# Start windows and panes at 1, not 0
set -g base-index 1
# window style and window active settings
set-window-option -g window-style 'bg=#181818'
set-window-option -g window-active-style 'bg=black'
set-window-option -g pane-active-border-style ''
# break out current pane into new window
unbind +
bind + break-pane
# no lag displaying cursor in vim when exiting insert mode
set-option -sg escape-time 10
# Powerline status
source "$POWERLINE_ROOT/powerline/bindings/tmux/powerline.conf"