-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
87 lines (70 loc) · 2.69 KB
/
Copy path.tmux.conf
File metadata and controls
87 lines (70 loc) · 2.69 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
82
83
84
85
86
87
# to reload:
# :source-file ~/.tmux.conf
### j prefix
set -g prefix C-j
### prefix-command delay
set -s escape-time 1
### mouse support
set -g mouse on
### bigger history limit plox
set-option -g history-limit 10000000
### colors
# black, red, green, yellow, blue, magenta, cyan, white, colour0 to
# colour255 from the 256-colour palette, or default
set -g default-terminal "screen-256color" # for Terminal, Iterm
set -g status-style fg=colour250,bg=colour234
set -g message-style fg=colour229,bold,bg=colour234
setw -g window-status-style fg=colour66,bg=colour234
setw -g window-status-current-style fg=colour234,bold,bg=colour110
setw -g pane-border-style fg=colour65,bg=colour234
setw -g pane-active-border-style fg=colour110,bg=colour234
setw -g pane-border-status top
setw -g pane-border-format '#[align=centre] #{pane_index}: #{pane_width}x#{pane_height} '
# for gruvbox
# see https://github.com/tmux/tmux/issues/1246
# set -g default-terminal "screen-256color"
# set -ga terminal-overrides ",*256col*:Tc"
### statusline stuff
set -g status-left "#[fg=colour66]\[#H\] #S-#I-#P"
set -g status-left-length 50
set -g status-right "#[fg=colour66]%y-%m-%d %R"
set -g status-right-length 50
set -g status-justify centre
### activity alerts
setw -g monitor-activity on
set -g visual-activity on
### bindings
bind-key R source-file ~/.tmux.conf \; display ".conf reloaded"
bind-key X confirm-before kill-session # kill full session
bind-key C-k send-keys C-l \; clear-history # clear pane buffer
# always use current pane location for splits
bind-key '"' split-window -c "#{pane_current_path}"
bind-key % split-window -h -c "#{pane_current_path}"
bind-key c new-window -c "#{pane_current_path}"
### copy/paste
bind-key -T copy-mode-vi v send -X begin-selection # visual selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy" # y for yank
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy" # click and drag
# bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"
### move around vimishly
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# move vimishly in copy mode
setw -g mode-keys vi
### resize vimishly
bind-key -r H resize-pane -L 5
bind-key -r J resize-pane -D 5
bind-key -r K resize-pane -U 5
bind-key -r L resize-pane -R 5
### tpm
# to install plugins & refresh: prefix + I
# to update plugins: prefix + U
# to clean up unlisted plugins: prefix + alt + u
# set -g @plugin 'tmux-plugins/tpm'
# set -g @plugin 'arcticicestudio/nord-tmux'
# set -g @plugin 'egel/tmux-gruvbox'
# set -g @plugin 'mshkrebtan/base16-tmux'
set -g @plugin 'tmux-plugins/tmux-resurrect'
run -b '~/.tmux/plugins/tpm/tpm'