forked from whiteinge/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
83 lines (68 loc) · 2.39 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
74
75
76
77
78
79
80
81
82
83
set -g default-terminal "screen-256color"
### screen-like keybindings
unbind C-b
set -g prefix C-a
bind C-a send-prefix
bind a send-prefix
bind A command-prompt "rename-window %%"
setw -g automatic-rename off
bind Escape copy-mode
# default is too slow which is annoying during heavy-use of the copy buffer
set -s escape-time 100
# vi-keys everywhere; anything else would be uncivilized
setw -g mode-keys vi
set -g status-keys vi
setw -g xterm-keys on
# Moving between windows/panes
bind C-a last-window
bind " " next-window
bind BSpace previous-window
bind '"' choose-window
set -g mouse-select-pane on
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind H command-prompt "resize-pane -L %1"
bind J command-prompt "resize-pane -D %1"
bind K command-prompt "resize-pane -U %1"
bind L command-prompt "resize-pane -R %1"
bind y setw synchronize-panes
# splits
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind r next-layout
bind R previous-layout
# maximizing and restoring panes.
# http://superuser.com/a/433702/112064
bind x resize-pane -Z
bind X run "tmux splitw; tmux splitw; tmux splitw; tmux selectl main-horizontal;"
bind W run "tmux renamew work; tmux splitw -l 3; tmux selectp -U"
# nice, big scrollback buffer (lines)
set -g history-limit 10000
# read and write and delete paste buffer
bind > command-prompt -p "Write buffer to xclip:" \
"run 'tmux save-buffer -b %1 - | xclip -i -select clipboard'"
bind < command-prompt -p "Read from xclip into buffer:" \
"run 'xclip -o -selection clipboard | tmux load-buffer -b %1 -'"
bind + command-prompt "delete-buffer -b %1"
# toggle activity/silence monitoring
bind m setw monitor-activity
bind M command-prompt -p "monitor-silence (seconds)" "setw monitor-silence %%"
# set xterm window status
set-option -g set-titles on
set-option -g set-titles-string '#H ###I.#P #W (#S)'
### Colors
set -g status-bg black
set -g status-fg white
set -g message-bg green
set -g message-fg black
setw -g window-status-bell-attr blink
setw -g window-status-bell-bg green
setw -g window-status-bell-fg black
setw -g window-status-current-bg white
setw -g window-status-current-fg blue
### Status bar
set -g status-right-length 50
set -g status-right "#[fg=magenta] @#H #[fg=cyan]%Y-%m-%d #[fg=yellow]%a #[fg=green]%H:%M #[fg=blue]#(uptime|sed -e 's/.*: //g' -e 's/,//g')#[default]"
# vim:ft=tmux