-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
66 lines (50 loc) · 1.9 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
# start window numbering at 1, rather than 0
set-option -g base-index 1
#
# allow sessions in different terminals of different size to be connected
# without forcing all windows to the size of the smallest terminal window
set-window-option -g aggressive-resize on
# don't change status bar when bell is triggered
set-option -g bell-action none
# don't change status bar for other windows when bell is triggered
set-window-option -g window-status-bell-attr none
set-window-option -g window-status-bell-bg default
set-window-option -g window-status-bell-fg default
# mark the current window
set-window-option -g window-status-current-attr reverse
set-window-option -g window-status-format "#I:#W"
# don't use escape as meta prefix
set-option -s escape-time 0
# prevent the windows from being renamed with the current directory and/or
# command
set-option -g allow-rename off
# run a non-login shell when opening a new window
set-option -g default-command bash
# use the mouse for navigation
#set -g mouse-select-pane on
#set -g mouse-select-window on
#setw -g mode-mouse on
set -g mouse on
set -g default-terminal "screen-256color"
# use j to pull the given window in, using a vertical split (tmux has horizontal
# and vertical confused)
bind-key j command-prompt "join-pane -h -s '%%'"
# use h to break off the current pane, but stay in the current window
bind-key h break-pane -d
# use | to split vertically
bind-key | split-window -h -c "#{pane_current_path}"
bind-key - split-window -c "#{pane_current_path}"
# don't use these dumb bindings to split panes
unbind-key %
unbind-key '"'
# resize panes using meta-wasd
bind-key -n M-a resize-pane -L
bind-key -n M-d resize-pane -R
bind-key -n M-w resize-pane -U
bind-key -n M-s resize-pane -D
bind-key c new-window -c "#{pane_current_path}"
bind-key C-o select-pane -t :.+
bind-key C-i select-pane -t :.-
bind-key C-r rotate-window
set -g prefix2 C-n
set -g history-limit 30000