-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmux.conf
98 lines (79 loc) · 2.57 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# change prefix Key to C-a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Change the default $TERM to tmux-256color
set -g default-terminal "tmux-256color"
# Some tweaks to the status line
set -g window-status-current-style "underscore"
# If running inside tmux ($TMUX is set), then change the status line to red
%if #{TMUX}
set -g status-bg red
%endif
# No bells at all
set -g bell-action none
# Keep windows around after they exit
set -g remain-on-exit on
# Turn the mouse on, but without copy mode dragging
set -g mouse on
unbind -n MouseDrag1Pane
unbind -Tcopy-mode MouseDrag1Pane
# split panes using e and o
bind e split-window -v
bind o split-window -h
# switch panes using Alt-arrow without prefix
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
# resize-panes (CTRL+ALT+Arrow)
bind -n C-M-Left resize-pane -L 1
bind -n C-M-Right resize-pane -R 1
bind -n C-M-Up resize-pane -U 1
bind -n C-M-Down resize-pane -D 1
# kill/Close current pane or windows if last pane
bind -n M-q kill-pane
# New window
#bind -n M-S-Left-N new-window
# Close current window
#bind -n M-S-Left-Q kill-window
# Next/Previous window
bind-key -n C-Tab next-window
bind-key -n C-S-Tab previous-window
# Also, if you want tmux to pass along these (and other) xterm-style key sequences to programs
# running inside tmux, then you will need to enable the xterm-keys window option.
#set-option -gw xterm-keys on
# reload config file (change file location to your tmux.conf you want)
bind r source-file ~/.tmux.conf
# Some extra key bindings to select higher numbered windows
bind F1 selectw -t:10
bind F2 selectw -t:11
bind F3 selectw -t:12
bind F4 selectw -t:13
bind F5 selectw -t:14
bind F6 selectw -t:15
bind F7 selectw -t:16
bind F8 selectw -t:17
bind F9 selectw -t:18
bind F10 selectw -t:19
bind F11 selectw -t:20
bind F12 selectw -t:21
# A key to toggle between smallest and largest sizes if a window is visible in
# multiple places
#bind F set -w window-size
# Keys to toggle monitoring activity in a window and the synchronize-panes option
#bind m set monitor-activity
#bind y set synchronize-panes\; display 'synchronize-panes #{?synchronize-panes,on,off}
# Create a single default session - because a session is created here, tmux
# should be started with "tmux attach" rather than "tmux new"
#
#new -d -s0 -nirssi 'exec irssi'
#set -t0:0 monitor-activity on
#set -t0:0 aggressive-resize on
#neww -d -ntodo 'exec emacs ~/TODO'
#setw -t0:1 aggressive-resize on
#neww -d -nmutt 'exec mutt'
#setw -t0:2 aggressive-resize on
#neww -d
#neww -d
#neww -d