-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
74 lines (56 loc) · 1.71 KB
/
tmux.conf
File metadata and controls
74 lines (56 loc) · 1.71 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
# set prefix key to ctrl-a like screen
set -g prefix C-a
unbind C-b
# allow for utf8
# set -g status-utf8 on
# allow for screen style ctrl-a/ctrl-a GOTO last window
bind-key C-a last-window
# Set delay time to be very small
set -sg escape-time 1
# use indexing for screens and panes...use defaults
set -g base-index 0
set -g pane-base-index 0
# reload on prefix-r
bind r source-file ~/.tmux.conf \; display "~/.tmux.conf reloaded!"
# allow ctrl-a ctrl-a to pass through
#bind C-a send-prefix
bind a send-prefix
# split windows with logical characters
bind \ split-window -h
bind - split-window -v
# Explcitly bind n and p to next and prev window
bind -r n select-window -t :+
bind -r p select-window -t :-
# bind vim keybindings to moving around panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# bind ctrl+vim keys to resize panes
bind C-h resize-pane -L 5
bind C-j resize-pane -D 9
bind C-k resize-pane -U 5
bind C-l resize-pane -R 5
# setw -g mode-mouse off
# set -g mouse-select-pane on
# set -g mouse-resize-pane on
# set -g mouse-select-window on
set -g default-terminal "screen-256color"
# Colors
set -g status-fg white
set -g status-bg black
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr dim
setw -g window-status-current-bg blue
setw -g window-status-current-fg white
# setw -g window-status-current-attr bold
set -g status-left "#[fg=green]#S "
setw -g monitor-activity on
set -g visual-activity on
setw -g mode-keys vi
# rebind copy/paste/visual keys when in command mode
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
# setup ctrl-c to copy to system clipboard
bind C-c run "tmux save-buffer - | pbcopy"