-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
111 lines (78 loc) · 2.5 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
set -g default-terminal "screen-256color"
set -ga terminal-overrides ",xterm-256color:Tc"
set -g history-limit 5000
# plugins
set -g @plugin 'sainnhe/tmux-fzf'
# set -g @tmux-fzf-launch-key 'C-f'
# use VI
set-window-option -g mode-keys vi
# Use ctrl-e instead of ctrl-b
set -g prefix C-e
unbind C-b
bind C-e send-prefix
# unbind C-f
# bind C-f command-prompt "switch-client -t %%"
# kill
unbind k
bind k confirm-before "kill-window"
unbind ^x
bind ^x kill-pane
# reload config
unbind r
bind r source-file ~/.tmux.conf
unbind ^W
bind ^W split-window -p 25 'vim .' \; swap-pane -D
unbind ^T
bind ^T split-window -p 25
# tile all windows
unbind =
bind = select-layout tiled
# resize panes
unbind +
bind + new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \; swap-pane -s tmux-zoom.0 \; select-window -t tmux-zoom
unbind -
bind - last-window \; swap-pane -s tmux-zoom.0 \; kill-window -t tmux-zoom
# status bar
set -g status-style bg='black',fg='white'
set -g status-interval 1
set -g status-left ' '
set -g status-right '#[fg=yellow]%Y-%m-%d %H:%M#[default] '
set-window-option -g window-status-current-style bg=yellow,fg=black
# Pane mappings (Will work with Mac only if option key is meta, see readme)
set -sg escape-time 0
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
bind -n M-\\ split-window -h -c '#{pane_current_path}'
bind -n M-- split-window -v -c '#{pane_current_path}'
bind-key -nr M-Up resize-pane -U
bind-key -nr M-Down resize-pane -D
bind-key -nr M-Left resize-pane -L
bind-key -nr M-Right resize-pane -R
bind-key -n M-PPage copy-mode -u
bind-key -n M-u copy-mode
bind-key -n M-i paste-buffer
bind-key -n M-d detach-client
bind-key -n M-8 choose-session
bind-key -n M-9 switch-client -p
bind-key -n M-0 switch-client -n
# Tab titles
setw -g monitor-activity on
set -g visual-activity on
set -g set-titles on
set -g set-titles-string '#S: #W'
setw -g automatic-rename
# EXPERIMENTAL
set-option -g status-fg white
set-option -g status-bg default
set-window-option -g window-status-style fg="#666666",bg=default
set-window-option -g window-status-current-style fg=red,bg=default
set-option -g message-style fg=white,bg=black,bright
set -g status-left " "
set -g status-justify left
setw -g window-status-format '[#{window_index}] #{b:pane_current_path}'
setw -g window-status-current-format '[#{window_index}] #{b:pane_current_path}'
set -g status-right " "
set -as terminal-overrides ',*:smxx=\E[9m'
run '~/.tmux/plugins/tpm/tpm'