-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
executable file
·64 lines (52 loc) · 2.31 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
# --------------------------------------------------------------------------------------------------
# General
#
set -sg escape-time 0
set -g default-terminal "xterm-256color"
# Set default shell and history limit
set -g default-shell $SHELL
set -g history-limit 999999
set-option -g focus-events on # Fire focus events
set-option -sa terminal-overrides ',xterm-256color:RGB' # Enable true colors
set-option -g mouse off # Disable mouse
setw -g mode-keys vi # Enable vi mode
# Enable visual selection and yanking in vi mode
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel pbcopy
# Map hjkl movement keys as pane movement keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Retain working directory when splitting panes and creating windows
bind '%' split-window -h -c '#{pane_current_path}' # Split panes horizontal
bind '"' split-window -v -c '#{pane_current_path}' # Split panes vertically
bind c new-window -c '#{pane_current_path}' # Create new window
# --------------------------------------------------------------------------------------------------
# Interface
#
# Set message foreground and text colors
setw -g message-style bg=black,fg=brightred
# Enable status bar with transparent color
set -g status on
set -g status-style bg=default
# Set window statuses on the left side, date and time on the right side
set -g status-left ''
set -g status-justify left
set -g status-right '#[fg=brightblue,bold] %m/%d #[fg=white,bold] %r '
# Format and color current window status info
setw -g window-status-style none
setw -g window-status-current-format ' #[fg=cyan]#I#[fg=colour249]: #[fg=colour255]#W#[fg=colour249]#F '
# Format and color background window status info
setw -g window-status-format ' #[fg=cyan]#I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
# --------------------------------------------------------------------------------------------------
# Plugins
#
# Neovim resurrect strategy
set -g @resurrect-strategy-nvim 'session'
if-shell -b '[ -f ~/.tmux/plugins/tpm/tpm = 1 ]' \
" \
set -g @plugin 'tmux-plugins/tpm' \
set -g @plugin 'tmux-plugins/tmux-resurrect' \
run '~/.tmux/plugins/tpm/tpm' \
"