#!/usr/bin/env sh # Pasang config tmux (+ plugin) ke ~/.config/tmux set -eu DEST="${XDG_CONFIG_HOME:-$HOME/.config}/tmux" HERE="$(cd "$(dirname "$0")" && pwd)" command -v tmux >/dev/null 2>&1 || { echo "tmux belum terpasang"; exit 1; } command -v git >/dev/null 2>&1 || { echo "git belum terpasang"; exit 1; } mkdir -p "$DEST" cp -f "$HERE/.config/tmux/tmux.conf" "$DEST/tmux.conf" cp -f "$HERE/.config/tmux/palette.conf" "$DEST/palette.conf" cp -f "$HERE/.config/tmux/apply-palette.sh" "$DEST/apply-palette.sh" chmod 0755 "$DEST/apply-palette.sh" PLUG="$DEST/plugins" mkdir -p "$PLUG/catppuccin" [ -d "$PLUG/tpm" ] || git clone --depth 1 https://github.com/tmux-plugins/tpm "$PLUG/tpm" # catppuccin/tmux dipasang manual (rekomendasi resmi repo-nya) [ -d "$PLUG/catppuccin/tmux" ] || \ git clone --depth 1 -b v2.3.1 https://github.com/catppuccin/tmux.git "$PLUG/catppuccin/tmux" echo "Config terpasang di $DEST" echo "Buka tmux, lalu tekan prefix + I untuk memasang plugin TPM lainnya."