-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
42 lines (32 loc) · 1.03 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
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'Morantron/tmux-fingers'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Remap prefix to Control + s
set -g prefix C-s
unbind C-b
bind C-s send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# Vi keys in copy mode
setw -g mode-keys vi
# Scroll to previous prompt
bind-key -T copy-mode-vi u send -X start-of-line\; send -X search-backward ""
# Ensure paste works in vim/tmux
set -g default-shell /usr/bin/fish
# OSX
if-shell "which reattach-to-user-namespace >/dev/null" \
'set -g default-command "reattach-to-user-namespace -l ${SHELL}"'
# Set terminal to xterm
set -g default-terminal $TERM
# Cursor shape (NeoVim)
set -g -a terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q,xterm-256color:Tc'
source-file ~/.tmux/tmuxline
# Initialize TMUX plugin manager
run '~/.tmux/plugins/tpm/tpm'