-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
86 lines (67 loc) · 2.18 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
#setw -g automatic-rename off
set -g clock-mode-style 24
#setw display-time 2000
set -g display-time 5000
#setw display-time 5000
set -g display-panes-time 10000
set -g mode-keys vi
set -g status-keys vi
set -g status-interval 5
set -g status-right "%s \"#H\" %Y-%m-%d %H:%M:%S"
set -g status-style "bg=black"
set -ag status-style "fg=green"
set -g mouse off
#current window title in double quotes, the date and the time
#"title" date time
# #(shell-command) First line of the command's output
# #[attributes] Colour or attribute change
# #S default
# #H host
#setw buffer-limit N
#set set-remain-on-exit on
#setw -g aggressive-resize on
set -g history-limit 100000
set -g visual-bell on
set -g visual-silence on
#mnemonic S=screenshot
bind-key S capture-pane
#mnemonic % = vertical split (default)
#mnemonic | = vertical split
#mnemonic - = horizontal split
unbind-key '"'
bind-key "|" split-window -h
bind-key "-" split-window -v
bind-key "i" copy-mode
bind-key "I" paste-buffer
#normaal
set -g prefix C-b
unbind-key C-b
bind-key C-b send-prefix
#mnemonic: S = screenshot
bind-key S capture-pane
#mnemonic: ! = toggle
bind-key '!' swap-pane -U
#vi inspired pane resize
#bind-key -r C-h resize-pane -L
#bind-key -r C-j resize-pane -D
#bind-key -r C-k resize-pane -U
#bind-key -r C-l resize-pane -R
#vi inspired pane change
#for some reason C-h does not work
bind-key -r C-h select-pane -L
bind-key -r C-j select-pane -D
bind-key -r C-k select-pane -U
bind-key -r C-l select-pane -R
#little man
bind-key / command-prompt -p "man:" "split-window -p 25 'exec man %%'"
#mnemonic: M-w = Emacs copy C-y = Emacs paste
bind-key M-w run-shell "tmux save-buffer - | pbcopy"
bind-key C-y run-shell "pbpaste|tmux load-buffer -" \; paste-buffer
#throw panes around
bind-key 'j' command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key '@' command-prompt -p "send pane to:" "join-pane -t ':%%'"
##copy tmux paste buffer to clipboard
#bind C-c run "tmux show-buffer | xclip -i -selection clipboard"
##copy clipboard to tmux paste buffer and paste tmux paste buffer
#bind C-v run "tmux set-buffer --- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer"
# vi-edit vi-choice vi-copy