-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtmux.conf
More file actions
115 lines (98 loc) · 3.87 KB
/
tmux.conf
File metadata and controls
115 lines (98 loc) · 3.87 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
unbind C-b; set -g prefix C-a
bind a send-prefix
bind C-a last-window
unbind n; bind n next-window
unbind N; bind N previous-window
unbind p; bind p last-pane
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
bind-key C-h select-pane -L
bind-key C-j select-pane -D
bind-key C-k select-pane -U
bind-key C-l select-pane -R
bind-key -r w swap-window
bind-key -r H resize-pane -L 5
bind-key -r J resize-pane -D 5
bind-key -r K resize-pane -U 5
bind-key -r L resize-pane -R 5
bind-key "|" split-window -h -c "#{pane_current_path}"
bind-key "-" split-window -v -c "#{pane_current_path}"
unbind :
unbind \; ; bind \; command-prompt
bind , command-prompt -I '#W' "rename-window '%%'"
bind @ command-prompt "joinp -s '%%'"
bind C command-prompt "new-window '%%'"
unbind [; bind v copy-mode
unbind-key -T copy-mode-vi v
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection
bind-key -T copy-mode-vi 'C-v' send-keys -X rectangle-toggle
bind-key r source-file ~/.tmux.conf \; display-message 'Sourced .tmux.conf!'
bind-key C-t choose-tree
set -g mode-keys vi
set -g mouse on
set -g display-panes-time 3000
set -g base-index 1
set -g pane-base-index 1
set -g renumber-windows on
set -g focus-events on
set -g aggressive-resize on
set -g allow-rename off
set -g automatic-rename off
set -g clock-mode-style 12
set -g alternate-screen on
set -g monitor-activity off
set -g visual-activity off
set-option -g history-limit 99999
set -g default-shell /bin/zsh
set -g default-command /bin/zsh
set -g set-titles on
set -g set-titles-string '[tmux] #{pane_current_command}'
set -g repeat-time 100
set -g default-terminal "tmux-256color"
set -g escape-time 10
# set -ga terminal-overrides ',*:sitm@,ritm@'
set -as terminal-overrides ',xterm*:Tc:sitm=\E[3m'
set -g pane-active-border-style 'fg=blue'
set -g pane-border-style 'fg=black'
set -g display-panes-colour brightwhite
set -g display-panes-active-colour blue
set -g status-justify right
set -g status-style 'bg=default,fg=default'
set -g message-style 'fg=black,bg=brightwhite'
set -g status-interval 5
set -g status-position top
set -g window-status-separator ''
set -g window-status-current-format '#[fg=blue]#[fg=black,bg=blue] #I #W #[fg=default,bg=default] '
set -g window-status-format '#[fg=black,bg=default]#[fg=default,bg=black] #I #W #[fg=default,bg=default] '
set -g status-left-length 80
set -g status-left '#{prefix_highlight}'
set -g -a status-left '#[bg=brightwhite,fg=black] '
set -g -a status-left '#S:#I.#P#F '
set -g -a status-left '#[fg=brightwhite,bg=blue]#[fg=black] '
set -g -a status-left '#H '
set -g -a status-left '#[fg=blue,bg=default]#[fg=default] '
set -g -a status-left '#T'
set -g status-right-length 40
set -g status-right "#[fg=brightblack,bg=default]#[fg=default,bg=brightblack]"
if -F "$SSH_CONNECTION" "set -g -a status-right \" #(free -h | awk 'NR==2{print $7}') \""
set -g -a status-right " #(~/.local/bin/space -s)"
set -g -a status-right " #[fg=brightwhite,bg=brightblack]#[bg=brightwhite,fg=black]"
set -g -a status-right " #(cut -d ' ' -f 1-3 /proc/loadavg) "
if -F "$SSH_CONNECTION" "source-file $HOME/dotfiles/tmux.remote.conf"
set -g @yank_selection 'primary'
set -g @prefix_highlight_output_prefix '#[bg=black]#[fg=brightwhite] '
set -g @prefix_highlight_output_suffix ' #[fg=black]#[bg=brightwhite]'
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'wfxr/tmux-fzf-url'
run-shell ~/.tmux/plugins/tpm/tpm
unbind -T root WheelDownPane
unbind -T root WheelUpPane
unbind -T root MouseDown3Pane
# bind-key -T root PPage if-shell -F "#{alternate_on}" "send-keys PPage" "copy-mode -e; send-keys PPage"
# bind-key -T root WheelUpPane if-shell -F "#{alternate_on}" "send-keys PPage" "copy-mode -e; send-keys PPage"
# vim:ft=tmux: