-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
50 lines (38 loc) · 1.05 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
#Basics
set -g default-terminal "xterm-256color"
set -g history-limit 100000
#Use ` as default prefix
unbind C-b
set -g prefix `
bind-key ` send-prefix
#Terminal emulator window title
set -g set-titles on
set -g set-titles-string "#S:#I:#P #W"
#Scrolling works as expected
set -g terminal-overrides "xterm*:smcup@:rmcup@"
#Reload config
bind r source-file ~/.tmux.conf \; display "Config reloaded!"
#Pane creation
bind h split-window -v
bind v split-window -h
#Pane layout
bind '\' select-layout even-vertical
bind - select-layout even-horizontal
#Status bar
set -g status-justify left
set -g status-left "[#h %H:%M %Y-%h-%d]"
set -g status-left-length 100
set -g status-right ""
#Window renaming
setw -g automatic-rename off
#Colors
set -g status-bg black
set -g status-fg white
set-option -gw window-status-current-style fg=green,bold
#Alert on any window bell
set -g bell-action any
#Kill window/pain
bind-key k confirm-before -p "kil-window #W? (y/n)" kill-window
bind-key x kill-pane
#join pane
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'"