-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
65 lines (59 loc) · 2.34 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
# Execute git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# after ctrl+b I for install plugins
set -g default-terminal "screen-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
set -g status-bg black
set -g status-fg white
set -g mouse on
#Vi
setw -g mode-keys vi
bind-key -T copy-mode-vi v send-keys -X begin-selection
if-shell "uname | grep -q Darwin" {
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'
} {
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
}
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'jimeh/tmux-themepack'
set -g @plugin 'xamut/tmux-network-bandwidth'
set -g @themepack 'powerline/double/blue'
set -g @plugin 'tmux-plugins/tmux-resurrect' # bind ctrl+s ctrl+r
set -g @plugin 'schasse/tmux-jump' # bind +j
set -g allow-passthrough on
set -ga update-environment TERM
set -ga update-environment TERM_PROGRAM
#set -g @themepack 'powerline/double/magenta'
#jump
set -g @jump-key 'J'
#Resusrrect
set -g @resurrect-capture-pane-contents 'on'
# remap prefix from 'C-b' to 'C-a'
#unbind C-b
#set-option -g prefix C-a
#bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# switch panes using Alt-arrow without prefix
bind h select-pane -L
bind l select-pane -R
bind k select-pane -U
bind j select-pane -D
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'
# set -g @plugin 'git@github.com:user/plugin'
# set -g @plugin 'git@bitbucket.com:user/plugin'
#set-option -g status-right "#{network_bandwidth}"
#set-option -g @theme-status-right "#{network_bandwidth}"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
# set-option -g @themepack-status-left-area-right-format "#{network_bandwidth}"
set -goq @themepack-status-right-area-right-format "#(ifconfig en0 | grep 'inet ' | tr -s ' ' | cut -d ' ' -f 2)"
run '~/.tmux/plugins/tpm/tpm'