-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
71 lines (52 loc) · 1.65 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
#bind prefix to another key
set -g prefix C-a
unbind C-b
#remove keystroke delays
set -s escape-time 1
#windows and panes start at 1 instead of 0
set -g base-index 1
#reload tmux config
bind r source-file ~/.tmux.conf \; display "Reloaded!"
#since we've set prefix to C-a, this allows us to send this same command to other programs by pressing it twice
bind C-a send-prefix
#more visual bind to split windows
bind | split-window -h
bind - split-window -v
#bind pane selection
bind l last-window
#bind pane resizing
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
setw -g mode-keys vi
#set -g default-terminal "screen-256color"
#status-bar
set -g status-fg white
set -g status-bg black
#background and foreground color
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr dim
#set current window color
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright
#set selected pane color
set-option -g pane-border-fg white
set-option -g pane-border-bg black
set-option -g pane-active-border-fg white
set-option -g pane-active-border-bg red
#tmux console
set -g message-fg white
set -g message-bg green
set -g message-attr bright
#visual notifications
setw -g monitor-activity on
set -g visual-activity on
# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"