#!/usr/bin/env bash
# packs/tmux/install-020-config.sh -- link the team tmux.conf into $HOME.
#
# Mutates: ~/.tmux.conf becomes a symlink to this pack's files/tmux.conf
# (any existing file is backed up to ~/.tmux.conf.bak.<timestamp> first).
# Personal settings belong in ~/.tmux.conf.local (never touched by us).
#
# Usage: bash install-020-config.sh [TOOLKIT_DRY_RUN=1 to preview]
# Exit codes: 0 PROCEED, 1 HOLD, 2 precondition missing. ASCII + LF.
set -euo pipefail
shopt -s inherit_errexit 2>/dev/null || true
IFS=$'\n\t'
PACK_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
. "$PACK_DIR/../../lib/lib-install.sh"
backup_then_link "$PACK_DIR/files/tmux.conf" "$HOME/.tmux.conf"
info "personal overrides: create ~/.tmux.conf.local (sourced automatically)"