-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf.local
72 lines (57 loc) · 1.79 KB
/
tmux.conf.local
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
# set -sg escape-time 1
set -g history-limit 99999
set -g base-index 1
setw -g pane-base-index 1
set -g default-terminal 'screen-256color'
setw -g window-status-bg white
setw -g window-status-attr dim
setw -g window-status-current-bg black
setw -g window-status-current-fg white
setw -g window-status-current-attr bright
setw -g monitor-activity off
set -g visual-activity off
setw -g window-status-format "∙#I∙ #W "
setw -g window-status-current-format "∙#I∙ #W "
# status bar
# set -g status-utf8 on
set -g status-position top
set -g status-fg colour233
set -g status-bg colour240
set -g status-left "[#S]"
set -g status-left-bg white
set -g status-left-attr bright
set -g status-justify centre
set -g status-right "#[fg=colour242]:#{session_name}:#{window_index}.#{pane_index} "
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# custom prefix so my fingers only do weird things on my machines
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# vi
setw -g mode-keys vi
# mouse
set -g mouse on
# copy
unbind-key -T copy-mode-vi M-w
bind-key -T copy-mode-vi C-w send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X stop-selection
# Double clicking selects the word also when not in copy-mode.
bind-key -T root DoubleClick1Pane select-pane \; copy-mode \; send-keys -X select-word
unbind [
bind Escape copy-mode
# splits
unbind %
bind | split-window -h
bind - split-window -v
bind S choose-session
# select panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes
# 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