-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
58 lines (44 loc) · 1.21 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
#
# Plugins
#
set-environment -g TMUX_PLUGIN_MANAGER_PATH "/home/morga/.cache/tmux-plugins/"
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'arcticicestudio/nord-tmux'
#
# General
#
# Remap prefix
unbind C-b
set-option -g prefix `
bind-key ` send-prefix
set -g base-index 1
set -sg escape-time 200
# Remap pane splitting
unbind '"'
unbind %
bind | split-window -h
bind - split-window -v
# Remap pane switching
bind -n M-Left select-pane -L
bind -n M-Down select-pane -D
bind -n M-Up select-pane -U
bind -n M-Right select-pane -R
# Enable mouse mode
setw -g mouse on
# TERM env var
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",alacritty:Tc"
# Copy-Paste
unbind -T copy-mode C-Space
bind-key -T copy-mode C-S send-keys -X begin-selection
unbind -T copy-mode M-w
bind-key -T copy-mode M-w send-keys -X copy-pipe-and-cancel "xsel -ib"
# Lock command
set -g lock-command vlock
set -g lock-after-time 0
bind L lock-session
# Save screen content to file
bind p command-prompt -p 'Save history to:' -I '~/tmux.history' 'capture-pane -S -32768 ; save-buffer %1 ; delete-buffer'
run -b '~/.cache/tmux-plugins/tpm/tpm'