-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
80 lines (64 loc) · 2.18 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
## keybindings
unbind C-b
unbind C-a
unbind %
unbind ,
unbind .
unbind n
unbind p
unbind [
unbind '"'
unbind l
unbind &
unbind "'"
set-option -g prefix C-a # C-a for prefix just like screen
set -g mouse on
bind-key C-a command-prompt "find-window -N %%"
bind-key | split-window -h -c "#{pane_current_path}"
bind-key \ split-window -h -c "#{pane_current_path}"
bind-key i split-window -h -c "#{pane_current_path}"
bind-key - split-window -v -c "#{pane_current_path}"
bind-key C-c command-prompt "new-window -n %% -c \"#{pane_current_path}\""
bind-key x kill-pane
bind-key X kill-window
#bind-key q confirm-before kill-session
bind-key Q confirm-before kill-server
bind-key n command-prompt 'rename-window %%'
bind-key N command-prompt 'rename-session %%'
bind-key Escape copy-mode -u
bind-key Up copy-mode -u
bind-key R refresh-client
bind-key a send-key C-a
bind-key m set-window-option synchronize-panes
## set status bar
set-option -g status-interval 2
set-option -g status-justify "left"
set-option -g status-left-length 60
set-option -g status-right-length 90
set-option -g status-left ""
set-option -g status-right '#{battery_icon} #{battery_percentage} | %Y-%m-%d %H:%M '
## set window notifications
set-option -g visual-activity on
set-window-option -g automatic-rename off
## tmux window titling for X
set-option -g set-titles on
set-option -g set-titles-string '[#I] #W'
set-window-option -g automatic-rename on
set-window-option -g window-status-format ' #I #W |'
set-window-option -g window-status-style bold
# starts windows at 1 not 0
set-option -g base-index 1
set-window-option -g mode-keys vi
set-window-option -g monitor-activity off
set-option -g status-keys vi
# sensible defaults
set -g @plugin 'tmux-plugins/tmux-sensible'
# pane movements and operations
set -g @plugin 'tmux-plugins/tmux-pain-control'
# battery indicator in status-line
set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'seebi/tmux-colors-solarized'
set -g @colors-solarized '256'
set -g @plugin 'nhdaly/tmux-scroll-copy-mode'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'