-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
58 lines (44 loc) · 1.39 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
set -ga terminal-overrides ",screen-256color*:Tc"
set-option -sa terminal-features ",foot:RGB"
set-option -g default-terminal "screen-256color"
set -s escape-time 0
set-option -g focus-events on
# Change leader to ctrl+a
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# enable mouse
set -g mouse on
# Toolbar color
set -g status-style 'bg=#333333 fg=#5eacd3'
# start windows from 1
set -g base-index 1
# refresh tmux config
unbind r
bind r source-file ~/.tmux.conf
# vim-like pane switching
set-window-option -g mode-keys vi
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'wl-copy'
unbind -T copy-mode-vi MouseDragEnd1Pane
# Split panes
unbind %
bind | split-window -h
unbind '"'
bind - split-window -v
# resize panes
bind -r k resize-pane -U 5
bind -r j resize-pane -D 5
bind -r h resize-pane -L 5
bind -r l resize-pane -R 5
# Toggle fullscreen pane
bind -r m resize-pane -Z
# tmux-sessionizer
bind -r D neww -c "#{pane_current_path}" "[[ -e TODO.md ]] && nvim TODO.md || nvim ~/.dotfiles/personal/todo.md"
bind-key -r f run-shell "tmux neww ~/.dotfiles/bin/tmux-sessionizer"
# plugin manager
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-urlview'
set -g @plugin 'christoomey/vim-tmux-navigator'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'