-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
45 lines (45 loc) · 1.93 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
set -g xterm-keys on
set -s escape-time 10
set -sg repeat-time 600
set -s focus-events on
set -g history-limit 50000
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
bind '\' split-window -h
bind - split-window -v
set -g base-index 1
set -g history-limit 100000
bind -n C-Left select-pane -L
bind -n C-Right select-pane -R
bind -n C-Up select-pane -U
bind -n C-Down select-pane -D
set-option -g allow-rename off
set -g window-status-current-style "underscore"
set-option -sa terminal-overrides ",xterm*:Tc"
set -g default-terminal "tmux-256color"
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
bind-key M split-window -h "vim ~/.tmux.conf"
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
set -g mouse on
unbind -n MouseDrag1Pane
unbind -Tcopy-mode MouseDrag1Pane
# ----------------------
# Status Bar
# -----------------------
set-option -g status on # turn the status bar on
set -g status-interval 5 # set update frequencey (default 15 seconds)
set -g status-justify centre # center window list for clarity
# visual notification of activity in other windows
setw -g monitor-activity on
set -g visual-activity on
# set color for status bar
set-option -g status-bg colour237 #base02
set-option -g status-fg yellow #yellow
# show host name and IP address on left side of status bar
set -g status-left-length 80
set -g status-left "#[fg=red]tun0 #[fg=brightblue]#(ip addr show dev tun0 | grep "inet[^6]" | awk '{print $2}'| cut -d/ -f1) #[fg=red] eth0 #[fg=brightblue]#(ip addr show dev eth0 | grep "inet[^6]" | awk '{print $2}'| cut -d/ -f1) #[fg=red] extIP #[fg=brightblue]#(curl ipinfo.io/ip) #[fg=red] Target #[fg=brightblue]#(cat ~/.target) "
# show session name, window & pane number, date and time on right side of
# status bar
set -g status-right-length 60
set -g status-right "#[fg=green] %A, %d %b %I:%M %p %Y"