-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
91 lines (76 loc) · 1.97 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
# tmux plugin manager
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Set the prefix to ^A.
unbind C-b
set -g prefix ^A
bind a send-prefix
set-option -g history-limit 10000
set-window-option -g automatic-rename off
set-window-option -g base-index 1
set-window-option -g pane-base-index 1
# Status Line inspires from
# https://github.com/zolrath/wemux/wiki/Status-Line
set -g status-left-length 32
set -g status-right-length 150
set -g status-fg white
set -g status-bg colour234
set -g window-status-current-format "#[fg=colour234,bg=colour39] > #[fg=colour25,bg=colour39,noreverse,bold] #I #W #[fg=colour39,bg=colour234,nobold]"
set-option -g status-left ""
set-option -g status-right "#[fg=white,bg=colour234] [%Y/%m/%d(%a)%H:%M] #I #W"
# Sync panes
bind z setw synchronize-panes on
bind Z setw synchronize-panes off
# Reload
#bind r source-file ~/│.tmux.conf
# Split Window Settings
# (Like VI keybinds)
bind s split-window -v
bind v split-window -h
#bind h select-pane -L
#bind j select-pane -D
#bind k select-pane -U
#bind l select-pane -R
bind < resize-pane -L 10
bind > resize-pane -R 10
bind - resize-pane -D 3
bind + resize-pane -U 3
bind : command-prompt
# Resize Window by Alt+Cursor
bind-key -n M-Up resize-pane -U 5
bind-key -n M-Down resize-pane -D 5
bind-key -n M-Left resize-pane -L 5
bind-key -n M-Right resize-pane -R 5
# VI-styled copy mode
setw -g mode-keys vi
# Next, Prev
unbind ^@
bind ^@ next-window
unbind ^N
bind ^N next-window
unbind " "
bind " " next-window
unbind n
bind n next-window
unbind ^H
bind ^H previous-window
unbind ^P
bind ^P previous-window
unbind p
bind p previous-window
unbind BSpace
bind BSpace previous-window
# Window list (C-a + S-2)
unbind '"'
bind '"' choose-window
# Title change
unbind A
bind A command-prompt "rename-window %%"
# Kill
unbind K
bind K confirm-before "kill-window"
unbind k
bind k confirm-before "kill-window"
# VIM powerline fix
set -g default-terminal "screen-256color"
run '~/.tmux/plugins/tpm/tpm'