-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
84 lines (69 loc) · 2.19 KB
/
.tmux.conf
File metadata and controls
84 lines (69 loc) · 2.19 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
unbind-key C-b
set -g prefix C-w
set -g default-terminal "tmux-256color"
set -as terminal-features ',*:RGB'
set-option -g focus-events on
bind v split-window -v -c "#{pane_current_path}"
bind s split-window -h -c "#{pane_current_path}"
bind e new-window -c "#{pane_current_path}"
bind c new-window -c ~/
bind C-w send-prefix
set -g history-limit 10000000
set -g mouse on
set -g set-clipboard on
set -g status-keys vi
set -g mode-keys vi
set -g renumber-windows on
set -g status-position bottom
set -g base-index 1
set -g status-bg black
set -g status-fg colour245
set -g status-left-length 50
set -g mode-style "fg=white, bg=colour233"
# set -g status-justify centre
set-option -g status-right ""
set-window-option -g window-status-current-style fg=white
# set -g pane-scrollbars modal
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send -X copy-pipe "xclip -selection clipboard -in"
bind-key -T copy-mode-vi M-x kill-pane
bind-key -T copy-mode-vi M-X kill-window
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -n M-X kill-window
bind -n M-x kill-pane
bind -n M-c new-window -c ~/
bind -n M-e new-window -c "#{pane_current_path}"
bind -n M-v split-window -v -c "#{pane_current_path}"
bind -n M-s split-window -h -c "#{pane_current_path}"
bind -n M-z resize-pane -Z
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
bind -n M-1 select-window -t :1
bind -n M-2 select-window -t :2
bind -n M-3 select-window -t :3
bind -n M-4 select-window -t :4
bind -n M-5 select-window -t :5
bind -n M-6 select-window -t :6
bind -n M-7 select-window -t :7
bind -n M-8 select-window -t :8
bind -n M-9 select-window -t :9
bind -n M-m set-window-option synchronize-panes
bind -n M-f copy-mode
bind -n M-t choose-tree
bind -n M-y choose-session
bind -n M-g display-popup -E -w 90% -h 85% "htop"
bind -n M-b display-popup -E -w 90% -h 85% "nvtop"
bind -n M-n display-popup -E -w 80% -h 85% 'mkdir -p ~/scratch && nvim "$HOME/scratch/$(date +%Y%m%d).md"'
if-shell '[ -n "$SSH_TTY" ]' {
unbind C-w
set -g prefix C-e
bind C-e send-prefix
bind x kill-pane
set -g status-bg color67
set -g status-fg white
}