-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmux.conf
69 lines (52 loc) · 1.72 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
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 -c "#{pane_current_path}"
bind-key s split-window -v -c "#{pane_current_path}"
# Lots of history
set -g history-limit 10000
# Who doesn't like a functional mouse? me.
# set -g mode-mouse off
# I lied, some things are nice.
#set-option -g mouse-select-pane on
#set-option -g mouse-resize-pane on
#set-option -g mouse-select-window 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 30
set -g status-right-length 140
set -g status-left '[ #h:#[fg=colour106]#S#[default] ][ '
set -g status-right ' ][ #[fg=blue,bg=black]%m/%d #[fg=white]%H:%M#[default] ]'
# default statusbar colors
set -g status-fg green
set -g status-bg black
# default window title colors
set-window-option -g window-status-format '#I #W#F'
# active window title colors
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 -Tcopy-mode-vi 'v' send -X begin-selection
bind-key -Tcopy-mode-vi 'C-v' send -X rectangle-toggle
bind-key -Tcopy-mode-vi 'y' send -X 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
# Resize shortcuts
bind-key m resize-pane -x 2
bind-key M resize-pane -x 80
# force reload of tmux config
unbind r
bind-key r source-file ~/.tmux.conf
# client-refresh
bind-key C-r refresh-client