-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
34 lines (26 loc) · 911 Bytes
/
.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
# Send prefix
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
# Use Alt-arrow keys to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
# Mouse mode
setw -g mouse on
# Set easier window split keys
bind-key | split-window -h
bind-key - split-window -v
# Easy config reload
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded."
# Ctrl + a a - move to beginning of line.
bind a send-prefix
# show host name and IP address on left side of status bar
set -g status-left-length 70
set -g status-left "#[fg=red]tun0: #(ip addr show dev tun0 | grep "inet[^6]" | awk '{print $2}' | awk -F/ '{print $1}') | "
# set a higher history limit (2000 is default i think)
set-option -g history-limit 4000