-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
74 lines (58 loc) · 1.86 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
72
73
# NOTE: I actually like this the way it is with C-b
# C-a seems to interfere with some other stuff in nvim
#
# Reset the prefix to C-a
# set -g prefix C-a
# unbind C-b
# bind-key C-a send-prefix
# True color
set -g default-terminal "screen-256color"
# Start windows and panes index at 1, not 0.
set -g base-index 1
setw -g pane-base-index 1
# Ensure window index numbers get reordered on delete.
set-option -g renumber-windows on
# Easy window splitting
unbind %
bind | split-window -h
unbind '"'
bind - split-window -v
# Easy re-sourcing tmux
unbind r
bind r source-file ~/.tmux.conf
# Resize tmux panes
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
bind -r m resize-pane -Z
# Enable the mouse
set -g mouse on
# TPM as a plugin
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# List of tmux plugins
set -g @plugin 'christoomey/vim-tmux-navigator'
# Fixes a stupid bug where the escape time is super long when using
# tmux + nvim
# Search for "delayed": https://neovim.io/doc/user/faq.html#faq
set -sg escape-time 10
# Beautiful theme!
# set -g @plugin 'jimeh/tmux-themepack'
# set -g @themepack 'powerline/default/blue'
# Second option:
# set -g @plugin 'wfxr/tmux-power'
# set -g @tmux_power_theme 'snow'
# Tokyo Night!
# https://github.com/janoamaral/tokyo-night-tmux
set -g @plugin "janoamaral/tokyo-night-tmux"
set -g @tokyo-night-tmux_window_id_style fsquare
set -g @tokyo-night-tmux_pane_id_style hsquare
set -g @tokyo-night-tmux_zoom_id_style fsquare
set -g @tokyo-night-tmux_show_path 0
set -g @tokyo-night-tmux_path_format relative # 'relative' or 'full'
# Plugin for resurrecting tmux if it crashes
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Run C-a shift+I to install the first time
# Initialize the tmux plugin manager AT THE BOTTOM of this conf file
run '~/.tmux/plugins/tpm/tpm'