-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
69 lines (47 loc) · 1.63 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
set -g history-limit 20000
# use C-a like in screen
unbind C-b
set -g prefix C-j
bind-key C-j last-window
# unbind detach & suspend keys
unbind C-z
# screen style pane navigation
bind-key tab select-pane -t :.+
bind-key > command-prompt -I "swap-window -t "
# toggle status bar
bind-key l set status
# vi style split window keys
unbind '"'
bind-key s split-window -c '#{pane_current_path}'
unbind %
bind-key v split-window -h -c '#{pane_current_path}'
# vi style copy mode
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection
bind-key t command-prompt -p "Join pane:" "join-pane -h -s '%1'"
set-option -g status-right "%a %d-%h %H:%M"
# copy from tmux clipboard to xclip
bind C-c run "tmux show-buffer | xclip -se clipboard > /dev/null"
# vi style rotate window
unbind C-o
bind-key x rotate-window
# Open yanked selection in browser. # Dangerous, can accidentally expose secrets.
# bind-key C-o run-shell 'qutebrowser "$(tmux show-buffer)"'
# vi navigation mode
set-window-option -g mode-keys vi
# Use emacs key mappings in command line
set-option -g status-keys emacs
set -sg escape-time 0 # escape key delay in vi
# colors
set -g status-bg colour235 # no color
set -g status-fg colour136
set-window-option -g window-status-style fg=colour210
set-window-option -g window-status-current-style fg=cyan
set -g display-time 3000
bind-key i display-message "[#S] ---- #I:#W ---- %d %b ---- %H:%M:%S"
set -g status off
bind-key y choose-session
# bind-key \ run 'tmux-kill-inactive-panes' # accidents
bind-key b switch-client -l
bind-key C-k resize-pane -U 8
bind-key C-h resize-pane -D 8