-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
71 lines (56 loc) · 1.88 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
### Color correction
# set -g default-terminal "xterm-256color-italic"
# set -g default-terminal "xterm-256color"
# set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",alacritty:Tc"
##$# Vi mode copy
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
### Unbinds default keys
unbind C-b # default prefix
unbind , # rename window
unbind l # last window
unbind z # zoom pane
unbind p # previous window
unbind n # next window
### Key Bind ###
set -g prefix C-a # bind new prefix hot keys
bind N new-window -c "#{pane_current_path}" # spawn new window at the same $CWD
bind C-a send-prefix # bind send prefix command
bind r command-prompt -I "rename-window "
# pane related
bind C-f resize-pane -Z # zoom pane
bind C-x kill-pane # close pane
# window related
bind X kill-window
bind % split-window -h -c '#{pane_current_path}'
bind '"' split-window -v -c '#{pane_current_path}'
# navgation
bind C-h select-pane -L
bind C-j select-pane -D
bind C-k select-pane -U
bind C-l select-pane -R
set-option -g repeat-time 5000
bind -r C-n next-window # jump to next window
bind -r C-p previous-window # jump to previous window
bind R source-file ~/.tmux.conf
#########
### TMUX Config ###
set -sg escape-time 0
set -g mouse on # mouse support
set-option -g allow-rename off # disable auto rename
set -g renumber-windows on # automatically renumber the window
set -g status-fg blue
set -g status-bg black
set -g message-command-style 'fg=white bg=black'
set -g message-style 'fg=white bg=black'
set -g status-keys vi
set-window-option -g window-status-format "#[fg=gray] #I #W "
set-window-option -g window-status-current-format "#[fg=black,bg=white] #I #W "
# TMP
set -g @plugin 'tmux-plugins/tmux-yank'
set -g status-left ""
set -g status-right ""
set -g status-position bottom
run '~/.tmux/plugins/tpm/tpm'