-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
79 lines (65 loc) · 2.19 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
# Create a new session on server start
# new-session
###############################################################################
# Key bindings
###############################################################################
# Default is Ctrl-B
set -g prefix M-a
# 2 x M-a
bind-key M-a last-window
# Rebind Ctrl-- horiz, Ctrl-| vert
unbind % # Remove default binding since we’re replacing
bind | split-window -h
bind \ split-window -h
bind - split-window -v
bind x kill-pane
bind X kill-window
bind q confirm-before kill-session
bind Q confirm-before kill-server
bind , previous-window # <
bind . next-window # >
bind < swap-window -t :-
bind > swap-window -t :+
bind n command-prompt 'rename-window %%'
bind N command-prompt 'rename-session %%'
bind r source-file ~/.tmux.conf
bind R refresh-client
bind M-h resize-pane -L 5
bind M-l resize-pane -R 5
bind M-j resize-pane -D 5
bind M-k resize-pane -U 5
###############################################################################
# Set status bar
###############################################################################
set -g status-bg black
set -g status-fg white
set -g status-left ‘#[fg=green]#H’
# Highlight active window
set-window-option -g window-status-current-bg red
###############################################################################
# Options
###############################################################################
# Set window notifications
setw -g monitor-activity on
set -g visual-activity on
# Start numbering windows from 1
set -g base-index 1
# Don't wait for escape after <prefix>
set -gs escape-time 0
# Automatically set window title
# setw -g automatic-rename
# Set the terminal title
set-option -g set-titles on
# <session name>/<window name> user@host
#set-option -g set-titles-string '#S/#W #(whoami)@#h'
set-option -g set-titles-string '#S'
set -g bell-action any
set -g history-limit 100000
# Don't wait for an escape sequence
set -s escape-time 0
setw -g aggressive-resize on
set -g default-terminal "xterm-256color"
###############################################################################
# Mouse mode
###############################################################################
setw -g mouse