-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
83 lines (61 loc) · 2.49 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
74
75
76
77
78
79
80
81
82
83
#-----------------------------------------------------------------
# main settings
#-----------------------------------------------------------------
# TODO: Consider use of...
# https://github.com/tmux-plugins/tmux-sensible
# https://github.com/tmux-plugins/tpm#other-goodies
# This is very particular in order to use true RGB in Alacritty /
# tmux / neovim. See "Machine Setup" notes.
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",alacritty:RGB"
# Recommended by nvim :Checkhealth
set-option -g focus-events on
# https://github.com/tmux/tmux/issues/353#issuecomment-294570322
set-option -s escape-time 10
# My first tmux config
# @see https://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
set-window-option -g mode-keys vi
# Source tmux config
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
# messages
# set -g message-style 'fg=colour232 bg=colour16 bold'
#-----------------------------------------------------------------
# plugins
#-----------------------------------------------------------------
set -g @plugin 'tmux-plugins/tpm'
##-----------------------------------------------------------------
## gruvbox theme
# @see https://github.com/egel/tmux-gruvbox
# @see https://github.com/jsec/tmux-gruvbox-light
# set -g @plugin 'egel/tmux-gruvbox'
# set -g @plugin 'jsec/tmux-gruvbox-light'
# set -g @plugin 'dracula/tmux'
set -g @plugin 'scottyeck/tmux-night-owl'
#-----------------------------------------------------------------
# vim-tmux-navigator
# @see https://github.com/christoomey/vim-tmux-navigator
set -g @plugin 'christoomey/vim-tmux-navigator'
#-----------------------------------------------------------------
# tmux-fzf
# @see https://github.com/sainnhe/tmux-fzf
# set -g @plugin 'sainnhe/tmux-fzf'
# tmux-fzf relies on GNU-sed, so we tell it not to use the
# default system sed and use GNU-sed instead.
TMUX_FZF_SED="/usr/local/bin/gsed"
set -g status on
set -g status-interval 1
# Note that we disable status-right from tmux-night-owl since it's
# not yet clear how to override. (Hence the fork.)
set-option -g status-right "#[fg=$FG1,bg=$BG3] %Y-%m-%d %H:%M #[fg=$BG1, bg=$BG2] #(pomox status)"
# and lastly...
#-----------------------------------------------------------------
# TPM
# @see https://github.com/tmux-plugins/tpm/
# Initialize TMUX plugin manager - should be the last line in
# a tmux.conf.
run -b '~/.tmux/plugins/tpm/tpm'