-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf##hostname.Nexus
57 lines (45 loc) · 1.65 KB
/
.tmux.conf##hostname.Nexus
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
# increase scroll history
set-option -g history-limit 10000
# terminal colors
set-option -g default-terminal "screen-256color"
# configure plugins
set -g @tmux_power_theme 'snow'
set -g @tmux_power_time_format '%H:%M'
#set -g @tmux_power_show_upload_speed true
#set -g @tmux_power_show_download_speed true
set -g @tmux_power_prefix_highlight_pos 'R'
# import theme and plugins
run-shell "~/.config/tmux/tmux-power.tmux"
run-shell "~/.config/tmux/tmux-net-speed/net-speed.tmux"
run-shell "~/.config/tmux/tmux-prefix-highlight/prefix_highlight.tmux"
# disable bells
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-option -g bell-action none
# ----------------------------- keybindings -----------------------------
# Page-Up for scrolling
#bind-key -n PPage copy-mode -u
# set secondary prefix key as ctrl+A
#set -g prefix2 C-a
#bind C-a send-prefix -2
# new split pane commands (to be used after prefix)
bind \/ split-window -h # horizontal
bind \; split-window -v # vertical
# panes navigation
bind -n S-Left selectp -L
bind -n S-Right selectp -R
bind -n S-Up selectp -U
bind -n S-Down selectp -D
# windows navigation
bind -n C-t new-window -a -c "#{pane_current_path}"
bind -n C-Down next
bind -n C-Up prev
# kill button
bind-key k \
split-window \; \
setw synchronize-panes on \; \
send-keys "sleep 1; pwd >> /tmp/tmux_restore_path.txt; tmux list-panes -s -F \"#{pane_pid} #{pane_current_command}\" | grep -v tmux | awk '{print $1}' | while read in; do killp \$in; done" C-m exit C-m
# reload config file
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"