-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
73 lines (51 loc) · 1.93 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
# set the prefix I'm used to (space)
unbind C-b
set -g prefix C-Space
set-window-option -g mode-keys vi # use vi keys in copy mode
set-option -g history-limit 10000
set -g display-time 4000
# color options that may or may not be good
set -g default-terminal "screen-256color"
set -ga terminal-overrides ",*256col*:Tc"
set -g xterm-keys on
set-option -g escape-time 10 # ms to wait after an escape to figure it out
set -g base-index 1 # 1-index window numbers
# setw -g aggressive-resize on
set -g status-right '%d-%b-%y '
set -g status-keys emacs
set -g focus-events on
# status bar colors
setw -g window-status-current-style fg='#5C995D',bg=black
setw -g message-style fg=black,bg='#5C995D'
set -g status-style fg=black,bg='#5C995D'
set -g bell-action none
bind C-Space last-window
bind R source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded..."
bind s split-window -v -c "#{pane_current_path}"
bind v split-window -h -c "#{pane_current_path}"
bind < resize-pane -L 10
bind > resize-pane -R 10
bind - resize-pane -D 10
bind + resize-pane -U 10
# vim-style pane navigation
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 H swap-window -dt -1
bind-key L swap-window -dt +1
# bind-key -Tcopy-mode-vi 'v' send -X begin-selection
# bind-key -Tcopy-mode-vi 'y' send -X copy-selection
# bind c new-window -c "#{pane_current_path}"
bind c new-window -a -c "$HOME"
# set-option -g default-command "reattach-to-user-namespace -l ${SHELL}"
set-window-option -g automatic-rename on
set-option -g renumber-windows on
set -g mouse on
# bind-key -T copy-mode-vi WheelUpPane send-keys -X scroll-up
# bind-key -T copy-mode-vi WheelDownPane send-keys -X scroll-down
# bind-key -T root WheelUpPane select-pane -t =\; copy-mode -e\; send-keys -M
set-option -g set-clipboard on
source-file -q ~/.tmux.local.conf
set -g @plugin 'tmux-plugins/tmux-yank'
run -b '~/.tmux/plugins/tpm/tpm'