-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
76 lines (58 loc) · 1.77 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
# unbind default prefix and set it to ctrl-j
unbind C-b
set -g prefix C-j
bind C-j send-prefix
set -g history-limit 1000000
set -g status-keys emacs
set -g renumber-windows on
set -g set-titles on
set -g set-titles-string "#T"
set -g mouse on
set -g focus-events on
# copy mode
setw -g mode-keys vi
# make delay shorter
set -sg escape-time 0
### key bindings ###
# kill panel forcely
bind X kill-pane
# reload config file
bind r source-file ~/.tmux.conf \; display ".tmux.conf reloaded!"
# create new-window with current path
bind C new-window -c "#{pane_current_path}"
# split window
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# resize panes
bind J resize-pane -D 10
bind K resize-pane -U 10
bind H resize-pane -L 10
bind L resize-pane -R 10
# select panes
bind j select-pane -D
bind k select-pane -U
bind h select-pane -L
bind l select-pane -R
# change layout
bind = select-layout tiled
# popup window
bind m run-shell "zsh -c tmuxpopup"
### status line
set -g status-position "top"
### source extra config file for Linux
if "uname | grep -q Linux" "source-file ~/.tmux.conf.linux"
### plugins ###
set -g @plugin "tmux-plugins/tpm"
set -g @plugin "tmux-plugins/tmux-sensible"
set -g @plugin "arcticicestudio/nord-tmux"
set -g @plugin "tmux-plugins/tmux-resurrect"
set -g @plugin "tmux-plugins/tmux-continuum"
set -g @plugin "fcsonline/tmux-thumbs"
# tpm
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
# tmux-thumbs
set -g @thumbs-command 'echo -n {} | pbcopy'
set -g @thumbs-upcase-command 'echo -n {} | pbcopy'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'