-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
90 lines (74 loc) · 2.16 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
unbind C-b
set -g prefix C-a
set -sg escape-time 1
set -g default-terminal "screen-256color"
set -sa terminal-overrides ",screen-256color:RGB"
set -g history-limit 1000000
set -g mouse on
set -g automatic-rename off
set -g allow-rename off
# 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-style fg=white,bg=colour234
set -g window-status-activity-style bold
set -g pane-border-style fg=colour245
set -g pane-active-border-style fg=colour39
set -g message-style fg=colour16,bg=colour221,bold
set -g window-status-current-format "#[fg=colour234,bg=colour39] > #[fg=colour25,bg=colour39,noreverse,bold] #I #W #[fg=colour39,bg=colour234,nobold]"
set -g status-left ""
set -g status-right "#[fg=white,bg=colour234] [#(tmux show-options -g prefix)][#(whoami)@#H][#(cat /proc/loadavg|cut -d' ' -f1),#(cat /proc/loadavg|cut -d' ' -f2)][%Y/%m/%d(%a)%H:%M] #I #W"
# Reload
unbind r
bind r source-file ~/.tmux.conf\; display "Reloaded!"
# 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
# VI-styled copy mode
setw -g mode-keys vi
# Next, Prev
unbind " "
bind " " next-window
unbind n
bind n next-window
unbind p
bind p previous-window
unbind BSpace
bind BSpace previous-window
# Last window
unbind C-a
bind C-a run "tmux last-window || tmux new-window"
# Window list
unbind a
bind a choose-window
# Title change
unbind t
bind t command-prompt "rename-window %%"
# Create and Kill
unbind N
bind N new-window
unbind K
bind K confirm-before "kill-window"
# Sync panes
unbind M-s
bind M-s set-window-option synchronize-panes on\; display "Sync panes!"
unbind M-S
bind M-S set-window-option synchronize-panes off\; display "Unsync panes!"
# Related lemonade
unbind -T copy-mode-vi y
bind -T copy-mode-vi y send-keys -X copy-pipe 'lemonade copy'
# for tmux plugin manager
source-file ~/.tmux.conf.d/tpm
# load local config file
source-file ~/.tmux.conf.d/local