-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdot.tmux.conf
More file actions
83 lines (68 loc) · 2.4 KB
/
dot.tmux.conf
File metadata and controls
83 lines (68 loc) · 2.4 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
unbind C-b
set -g prefix C-a
bind R source-file ~/.tmux.conf \; display "Reloaded!"
bind s choose-session
bind C-s new-session
bind M-s setw synchronize-panes
bind c new-window -c "#{pane_current_path}"
bind | split-window -h -c "#{pane_current_path}"
bind '\' split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
unbind l
unbind h
unbind j
unbind k
bind h select-pane -L
bind l select-pane -R
bind j select-pane -D
bind k select-pane -U
unbind J
unbind K
unbind L
unbind H
unbind ^
bind J resize-pane -D 3
bind K resize-pane -U 3
bind L resize-pane -R 6
bind H resize-pane -L 6
bind ^ resize-pane -U 30
bind-key C-b break-pane
bind-key C-j command-prompt -p "join pane from:" "join-pane -s '%%'"
# HELP
bind-key F1 new-window -n HELP 'clear && tpp .HELP.tpp'
bind-key F2 new-window -n Tut-cli 'clear && tpp .cmd.tpp'
bind-key F3 new-window -n Tut-nano 'clear && ttyplay -s2 .nano.ttyrec'
bind-key F4 new-window -n Tut-usb 'clear && ttyplay -s2 .usb.ttyrec'
# ttyrec (have to manually start 'ttyrec' before using this key)
bind-key g new-window -n ttyrec 'clear && bash ~/.tmp.sh' \;\
split-window \; resize-pane -U 5
# gtd
bind-key T new-session -d 'pkill gtd; gtd -s 25'
#--Usability--------------------------------------------------------------------
setw -g mode-keys vi
setw -g monitor-activity on
set -g visual-activity on
setw -g xterm-keys on
set -g default-command bash
#### Status-Bar
set -g status-style bg=default
setw -g window-status-style fg=default,dim
setw -g window-status-current-style fg=default,bold
set -g status-left-length 30
set -g status-left-style fg=colour172
set -g status-left '[#(whoami)@#h:#S] '
set -g status-right '#[fg=colour170]#(cat /tmp/gtd) #[fg=colour130]#(cat /proc/loadavg | cut -d" " -f1) #[fg=colour100]%b %d %R %a'
set -g default-terminal "screen-256color"
# https://github.com/tmux-plugins/tpm
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-open'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'
# 'C-a U' to update plugins
# 'C-a M-u' to uninstall, or just remove the respective dir.
# http://blog.hawkhost.com/2010/07/02/tmux-%E2%80%93-the-terminal-multiplexer-part-2/
# https://wiki.archlinux.org/index.php/Tmux