-
Notifications
You must be signed in to change notification settings - Fork 4
/
tmux.conf
61 lines (48 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
# Set the prefix to `ctrl + a` instead of `ctrl + b`
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# 256 color scheme
set -g default-terminal "screen-256color"
# default shell is zsh
set-option -g default-shell /bin/zsh
#Set the left and right status
set -g status-left '#[fg=colour237,bg=colour254,bold] #S:#P #[fg=colour254,bg=colour234,nobold]'
set -g status-right '#[fg=colour237,bg=default]#[fg=colour254,bg=colour237] %a %b %d, %Y %l:%M %p #[fg=colour238,bg=colour254,bold] #(hostname) #{battery_percentage} '
# Start numbering at 1
set -g base-index 1
# Allows for faster key repetition
set -s escape-time 0
# length of tmux status line
set -g status-right-length 150
# customize how windows are displayed in the status line
set -g window-status-current-format "#[fg=colour234,bg=colour32]#[fg=colour15,bold] #I #W #[fg=colour32,bg=colour234]"
set -g window-status-format "#[fg=colour234,bg=colour237]#[fg=colour15] #I #W #[fg=colour237,bg=colour234]"
set-option -g status-bg colour234
set-option -g status-fg colour231
# Set key binding
setw -g mode-keys vi
bind-key -T copy-mode-vi v send-keys -X begin-selection
unbind p
set -g @yank_action 'copy-pipe'
bind p paste-buffer
set -g @copy_mode_put p
bind-key -T prefix b previous-window
bind-key -T prefix k select-pane -U
bind-key -T prefix j select-pane -D
bind-key -T prefix h select-pane -L
bind-key -T prefix l select-pane -R
bind-key -r -T prefix C-k resize-pane -U 1
bind-key -r -T prefix C-j resize-pane -D 1
bind-key -r -T prefix C-h resize-pane -L 1
bind-key -r -T prefix C-l resize-pane -R 1
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# Mouse disabled
set -g mouse off
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'tmux-plugins/tmux-yank'
#set -g @plugin 'nhdaly/tmux-better-mouse-mode'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'