forked from adam8157/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
73 lines (55 loc) · 1.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
# prefix
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# set vi mode
setw -g mode-keys vi
# enable visual bell
set -g visual-bell off
# start a non-login shell
set -g default-command "${SHELL}"
# set scrollback
set -g history-limit 102400
# set $TERM variable
set -g default-terminal "screen-256color"
# refresh the display when exiting programs
setw -g alternate-screen on
# sane scrolling
set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
# (prefix) x to lock
bind x lock-server
set -g lock-command vlock
# (prefix) K to kill window
bind K confirm-before -p "Really kill #T? (y/n)" kill-pane
# (prefix) hjkl to move pane
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# (prefix) |/- to split window
bind | split-window -h
bind - split-window -v
# F11 and F12 to switch between windows
bind -n F11 previous-window
bind -n F12 next-window
# allow the renaming escape sequence
set -g allow-rename on
# automatic rename
set -g automatic-rename on
# set terminal's title
set -g set-titles on
set -g set-titles-string "tmux(@#H): #W"
# set status bar
set -g status-bg default
set -g status-justify centre
set -g status-left "#[fg=red][ #[default]"
set -g status-right "#[fg=red] ]#[default]"
# set window status style
setw -g window-status-style 'fg=blue,bold,noreverse'
setw -g window-status-bell-style 'fg=red,bg=default,bold,reverse'
setw -g window-status-current-style 'fg=blue,bold,reverse'
setw -g window-status-activity-style 'fg=yellow,bg=default,bold,reverse'
# sessions and windows
#new -s 0
#neww -d mutt
#neww -d ranger