-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
41 lines (36 loc) · 1.42 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
if-shell "test -f ~/.config/tmux/themes/vimstatusline3-dark" "source ~/.config/tmux/themes/vimstatusline3-dark"
set -g mouse on
set-window-option -g mode-keys vi
#key bindings
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind r source-file ~/.tmux.conf
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
# Use prefix C-l to clear the visible scrollback lines
bind C-l send-keys 'C-l'
# Use prefix C-k to clear the scrolled off (hidden) buffer lines
bind C-k clear-history
# same directory across panes
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
unbind-key -T copy-mode-vi v
bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle # Begin selection in copy mode.
bind-key -T copy-mode-vi 'v' send -X begin-selection # Begin selection in copy mode.
# Mac os only
unbind -T copy-mode-vi y
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'pbcopy'
#plugins
set -g @plugin 'tmux-plugins/tmux-sensible'
#Sets colors within tmux (especially the prompt)
set -g default-terminal screen-256color
set -ag terminal-overrides ",alacritty:RGB,*256col*:Tc"
# Set active pane colors
set -g pane-active-border-style bg=default,fg=magenta
set -g pane-border-style fg=green
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b ~/.local/share/tmux/plugins/tpm/tpm