-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
62 lines (47 loc) · 1.6 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
set -g default-terminal "screen-256color"
# Use a sane key binding.
unbind C-b
set -g prefix C-a
bind-key C-a last-window
# Saner split mappings
bind-key v split-window -h
bind-key s split-window -v
# Lots of history
set -g history-limit 10000
set -g mouse on
# Make a decent status bar
set -g status-interval 10
set -g status-justify centre # center align window list
set -g status-left-length 20
set -g status-right-length 140
set -g status-left '[ #h ][ '
set -g status-right ' ][ #[fg=blue,bg=black]%m/%d #[fg=white]%H:%M#[default] ]'
# default statusbar colors
set -g status-style fg=white,bg=black
# default window title colors
set-window-option -g window-style fg=green
set-window-option -g window-status-style dim
set-window-option -g window-status-format '#I #W#F'
# active window title colors
set-window-option -g window-status-current-style fg=white,bright
set-window-option -g window-status-current-format '#[fg=red](#[default]#I #W#F#[fg=red])#[default]'
# number windows from 1
set -g base-index 1
# Use C-a a <command> to send prefix along
bind-key a send-prefix
# Vi copypaste mode
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send-keys begin-selection
bind-key -T copy-mode-vi 'C-v' send-keys rectangle-toggle
bind-key -T copy-mode-vi 'y' send-keys copy-selection
# hjkl pane traversal
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Needed to support clipboard
set -g default-shell $SHELL
set -g default-command "reattach-to-user-namespace -l ${SHELL}"
# force reload of tmux config
unbind r
bind-key r source-file ~/.tmux.conf