forked from frioux/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
129 lines (104 loc) · 2.6 KB
/
tmux.conf
File metadata and controls
129 lines (104 loc) · 2.6 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
set -g update-environment ''
set -g prefix `
set -g history-limit 10000
unbind C-b
bind ` send-prefix
unbind [
bind Escape copy-mode
bind -t vi-copy Escape cancel
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
set -s escape-time 0
set -g base-index 1
set -g pane-base-index 1
set -g default-terminal screen-256color
setw -g window-status-current-attr bold
setw -g window-status-current-fg red
setw -g window-status-current-bg black
setw -g aggressive-resize on
bind u capture-pane \; \
save-buffer /tmp/tmux-buffer \; \
split-window -v -p 25 '$SHELL -c "urlview < /tmp/tmux-buffer"'
bind _ if-shell "tmux show-window-options -g \\; show-window-options | grep monitor-silence | tail -n 1 | grep -q 30" \
"set-window-option monitor-silence 0 ; display-message 'silence monitoring OFF'" \
"set-window-option monitor-silence 30 ; display-message 'monitoring for 30s silence'"
bind M set monitor-activity
# screen keys (from http://tmux.svn.sourceforge.net/viewvc/tmux/trunk/examples/screen-keys.conf?revision=2562&view=markup)
# Bind appropriate commands similar to screen.
# lockscreen ^X x
unbind ^X
bind ^X lock-server
unbind x
bind x lock-server
# screen ^C c
unbind ^C
bind ^C new-window
unbind c
bind c new-window
# detach ^D d
unbind ^D
bind ^D detach
# displays *
unbind *
bind * list-clients
# next ^@ ^N sp n
unbind ^@
bind ^@ next-window
unbind ^N
bind ^N next-window
unbind n
bind n next-window
# title A
unbind A
bind A command-prompt "rename-window %%"
# other ^A
unbind ^A
bind ^A last-window
# prev ^H ^P p ^?
unbind ^H
bind ^H previous-window
unbind ^P
bind ^P previous-window
unbind p
bind p previous-window
# windows ^W w
unbind ^W
bind ^W list-windows
unbind w
bind w list-windows
# quit \
unbind \
bind \ confirm-before "kill-server"
# kill K k
unbind K
bind K confirm-before "kill-window"
unbind k
bind k confirm-before "kill-window"
# redisplay ^L l
unbind ^L
bind ^L refresh-client
unbind l
bind l refresh-client
unbind |
bind | split-window -h
unbind -
bind - split-window -v
# :kB: focus up
unbind Tab
bind Tab select-pane -t:.+
unbind BTab
bind BTab select-pane -t:.-
# " windowlist -b
unbind '"'
bind '"' choose-window
set-option -g mouse off
setw -g pane-border-fg green
setw -g pane-border-bg black
setw -g pane-active-border-fg cyan
# I like the idea of this but I already use n and p pretty heavily :(
# unbind p
# bind p paste-buffer
bind C-c run "tmux save-buffer - | xclip -i -selection clipboard"
bind C-v run "tmux set-buffer \"$(xclip -o -selection clipboard)\"; tmux paste-buffer"
set-option -ga terminal-overrides ",xterm-256color:Tc"
# vim: ft=tmux