-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.tmux.conf
68 lines (50 loc) · 1.78 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
# lively colors, because I am human
set -g default-terminal 'screen-256color'
set -sa terminal-overrides ',xterm-256color:RGB'
# vim mode keys
setw -g mode-keys vi
# Vim style pane selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# mode mouse
setw -g mouse on
# monitor activity
setw -g monitor-activity on
# reattach to user namespace to enable mac osx clipboard
# set-option -g default-command "reattach-to-user-namespace -l $SHELL"
# set faster escape time (ms)
set escape-time 150
# setup proper select/copy
# 'v' to begin selection as in Vim
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel "pbcopy"
# update default binding of `Enter` to also use copy-pipe
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel "pbcopy"
# r to reload tmux conf
bind r source-file ~/.tmux.conf \; display-message "Config reloaded."
# standard splits
bind - split-window -v
# start window numbers at 1 to match keyboard order with tmux window order
set -g base-index 1
set-window-option -g pane-base-index 1
# renumber windows sequentially after closing any of them
set -g renumber-windows on
# soften status bar color from harsh green to light gray
set -g status-bg colour255
set -g status-fg colour135
# remove administrative debris (session name, hostname, time) in status bar
set -g status-left ''
set -g status-right ''
# increase scrollback lines
set -g history-limit 10000
# enable focus events
set-option -g focus-events on
# Lets get a bell working (Alacritty does not support a bell)
set -g monitor-bell on
set -g bell-action other
set-hook -g alert-bell 'run-shell "afplay ~/Music/click2.wav"'
# Clear scrollback buffer using C-b C-k
bind -n C-k clear-history