forked from sochoa/home
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
61 lines (47 loc) · 1.27 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
# Making sure to set the proper $TERM variable
set -g default-terminal "screen-256color"
# Screen command-key binding, who uses C-b anyway?
set -g prefix C-a
unbind C-b
bind C-a send-prefix
bind-key x kill-pane
# For reloading this configuration file
unbind r
bind r source-file ~/.tmux.conf \; run-shell "echo 'TMUX configuration reloaded.'"
# Copymode via <CMD>+Esc
unbind [
bind Escape copy-mode
# Horizontal split
unbind %
unbind |
bind | split-window -h -c "#{pane_current_path}"
# Vertical split
unbind '"'
unbind _
bind _ split-window -v -c "#{pane_current_path}"
# New Window
bind c new-window -c "#{pane_current_path}"
# Window Titles
set-option -g set-titles on
set-option -g set-titles-string '#S:#I.#P #W' # window number,program name,active (or not)
set-window-option -g automatic-rename on # auto name
# Toggle mouse on with ^B m
bind m \
set -g mouse on \;\
display 'Mouse: ON'
# Toggle mouse off with ^B M
bind M \
set -g mouse off \;\
display 'Mouse: OFF'
set -g visual-activity off
set -g visual-bell off
bind-key -n F7 prev
bind-key -n F8 next
setw -g mode-keys vi
bind l select-pane -L
bind j select-pane -D
bind k select-pane -U
bind \; select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
setw -g aggressive-resize on