2024-01-28 11:55:11 -08:00
|
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
|
|
|
set -g @plugin 'catppuccin/tmux'
|
2024-01-28 14:59:27 -08:00
|
|
|
# catppuccin
|
2024-01-28 11:55:11 -08:00
|
|
|
set -g @catppuccin_flavour 'mocha'
|
|
|
|
|
|
|
|
set -g @catppuccin_window_left_separator ""
|
|
|
|
set -g @catppuccin_window_right_separator " "
|
|
|
|
set -g @catppuccin_window_middle_separator " █"
|
|
|
|
set -g @catppuccin_window_number_position "right"
|
|
|
|
|
|
|
|
set -g @catppuccin_window_default_fill "number"
|
|
|
|
set -g @catppuccin_window_default_text "#W"
|
|
|
|
|
|
|
|
set -g @catppuccin_window_current_fill "number"
|
|
|
|
set -g @catppuccin_window_current_text "#W"
|
|
|
|
|
|
|
|
set -g @catppuccin_status_modules_right "directory user host session"
|
|
|
|
set -g @catppuccin_status_left_separator " "
|
|
|
|
set -g @catppuccin_status_right_separator ""
|
|
|
|
set -g @catppuccin_status_right_separator_inverse "no"
|
|
|
|
set -g @catppuccin_status_fill "icon"
|
|
|
|
set -g @catppuccin_status_connect_separator "no"
|
|
|
|
|
|
|
|
set -g @catppuccin_directory_text "#{pane_current_path}"
|
|
|
|
|
2024-01-28 14:59:27 -08:00
|
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
|
|
|
|
set-window-option -g mode-keys vi
|
|
|
|
|
|
|
|
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
|
|
|
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
|
|
|
|
|
|
|
|
bind | split-window -h -c "#{pane_current_path}"
|
|
|
|
bind - split-window -v -c "#{pane_current_path}"
|
|
|
|
|
2024-01-28 15:32:22 -08:00
|
|
|
bind-key J resize-pane -D
|
|
|
|
bind-key K resize-pane -U
|
|
|
|
bind-key H resize-pane -L
|
|
|
|
bind-key L resize-pane -R
|
|
|
|
|
2024-01-28 14:59:27 -08:00
|
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
|
2024-01-28 11:55:11 -08:00
|
|
|
# Install tpm if not already installed.
|
|
|
|
if "test ! -d ~/.tmux/plugins/tpm" \
|
|
|
|
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
|
|
|
|
|
|
|
|
# Init tmux plugin manager.
|
|
|
|
# Must be very last line!!
|
|
|
|
run '~/.tmux/plugins/tpm/tpm'
|