2024-10-14 11:16:52 +02:00
|
|
|
set -g default-shell /usr/bin/zsh
|
|
|
|
|
# normal background for active pane
|
|
|
|
|
set-window-option -g window-active-style bg=terminal
|
|
|
|
|
# grayed background for inactive panes
|
|
|
|
|
set-window-option -g window-style bg="#32302f"
|
2025-06-05 09:38:51 +02:00
|
|
|
# ensure "autoread" works in nvim (auto reload files when changed)
|
|
|
|
|
set-option -g focus-events on
|
2025-03-25 09:44:38 +01:00
|
|
|
# https://gist.github.com/andersevenrud/015e61af2fd264371032763d4ed965b6
|
|
|
|
|
set -g default-terminal "tmux-256color"
|
|
|
|
|
set -ag terminal-overrides ",$TERM:RGB"
|
2024-10-14 11:16:52 +02:00
|
|
|
|
2024-10-10 15:07:32 +02:00
|
|
|
# List of plugins
|
|
|
|
|
|
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-continuum'
|
|
|
|
|
|
2024-10-16 10:45:23 +02:00
|
|
|
# Plugin configurations
|
|
|
|
|
|
|
|
|
|
# auto-restore
|
|
|
|
|
set -g @continuum-restore 'on'
|
|
|
|
|
|
2024-10-10 15:07:32 +02:00
|
|
|
# Install plugin manager
|
|
|
|
|
#git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
|
|
|
|
# Install plugin:
|
|
|
|
|
# 1. add to .tmux.conf
|
|
|
|
|
# 2. prefix+I to fetch it
|
|
|
|
|
# Remove plugin:
|
|
|
|
|
# 1. remove from .tmux.conf
|
|
|
|
|
# 2. prefix+alt+u to remove it
|
|
|
|
|
# Update plugins:
|
|
|
|
|
# - prefix+U
|
|
|
|
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
|
|
|
|
run '~/.tmux/plugins/tpm/tpm'
|