-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
90 lines (66 loc) · 2.31 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
84
85
86
87
88
89
90
# screen-like
unbind C-b
set -g prefix C-a
bind a send-prefix
unbind %
bind | split-window -h
bind - split-window -v
bind C-a last-window
bind Tab last-pane
bind C-c new-window
bind C-d detach-client
set -g status-bg yellow
set -g status-fg black
set -g status-left "#[fg=red]#S %H:%M "
set -g status-left-length 20
set -g message-bg red
set -g display-time 1500
set -g history-limit 25000
set -w -g window-status-current-bg red
set -w -g window-status-current-fg yellow
set -g status-right-length 100
set -g status-interval 1
set -g status-right "#H: #(cut -d' ' -f1-3 /proc/loadavg) / #(cat /proc/typespeed)"
set -g base-index 1
set -g pane-base-index 1
set -g default-path $HOME
# repeated space/backspace toggles windows forward/backwards
bind -r Space next-window
bind -r C-Space next-window
bind -r C-h previous-window
bind -r C-? previous-window
bind Enter next-window -a
bind X kill-pane
bind C-l command-prompt -p "link in window:" "link-window -s '%%'"
bind I link-window -s comm:irssi* -t 0 ; set-window-option aggressive-resize on
bind K unlink-window
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
bind -r L next-layout
bind R source-file ~/.tmux.conf \; display-message "tmux: config reloaded"
bind C-p pipe-pane -o 'cat >>/tmp/tmux-output.#I-#P'
bind S command-prompt "rename-session '%%'"
bind A command-prompt "rename-window '%%'"
bind , command-prompt "rename-window '%%'"
bind _ show-messages
# paste latest cutbuffer to sprunge - in v1.6 it'll be possible
# to make a statement span multiple lines
bind P run-shell "tmux set-b $(tmux sa - | curl -F \
'sprunge=<-' http://sprunge.us) && tmux display-message \
'sprunge: upload sucessful!'"
# bold/italics mode problem with urxvt
set -g terminal-overrides "rxvt-unicode:sitm@"
bind C command-prompt -p 'connect to host:' "new-window -n '%1' \
'ssh %1' \; set -w remain-on-exit on"
bind M new-window -n TRACEROUTE 'mtr -4 -t 176.9.34.52' \; \
split-window 'mtr -6 -t 2a01:4f8:150:4022::2' \; \
set synchronize-panes on
bind W new-window -n WICD 'wicd-curses'
bind / command-prompt -p 'man page:' "split-window -h 'man %1'"
bind + choose-buffer "delete-buffer -b '%%'"
bind > save-buffer ~/.tmux-exchange
bind < load-buffer ~/.tmux-exchange
bind y set synchronize-panes on
bind Y set synchronize-panes off