Add default tmux config and plugins

This commit is contained in:
2026-07-13 14:16:15 +02:00
parent 736d4effa4
commit b34c3ad20b
7 changed files with 191 additions and 0 deletions
@@ -0,0 +1,14 @@
# Managed by Chef (kosmos-base::tmux). Do not edit on this host.
#
# This is the system default tmux config. It is sourced by each user's
# ~/.tmux.conf via `source-file`. Plugins are managed by Chef and live in
# a shared, root-owned directory; users do not install plugins themselves.
set-environment -g TMUX_PLUGIN_MANAGER_PATH '<%= @plugins_dir %>'
<% @plugins.each do |shorthand, _meta| -%>
set -g @plugin '<%= shorthand %>'
<% end -%>
# Initialize TPM Redux (must remain the last line of the file)
run '<%= @plugins_dir %>/tpm-redux/tpm'
@@ -0,0 +1,15 @@
# ~/.tmux.conf — created/managed by Chef (kosmos-base::tmux).
#
# This file imports the system default config below, then appends any overrides
# the user has submitted to files/default/tmux_users/<username>.conf in the
# kosmos-base cookbook. If you manage your own tmux config locally and have not
# submitted a file, Chef will not overwrite it.
source-file <%= @default_conf %>
<% if @user_content && !@user_content.empty? -%>
# === user overrides (from files/default/tmux_users/<username>.conf) ===
<%= @user_content %>
<% else -%>
# === Add your custom settings below this line ===
<% end -%>