Enables Color through an Include snippet in /etc/pacman.d so pacman options stay in sync between machines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
422 B
Bash
Executable File
12 lines
422 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Installs system-level config that stow can't manage (needs root).
|
|
set -euo pipefail
|
|
|
|
repo="$(cd "$(dirname "$0")" && pwd)"
|
|
|
|
# pacman: shared [options] snippet
|
|
sudo install -m644 "$repo/pacman/options.conf" /etc/pacman.d/options.conf
|
|
if ! grep -q '^Include = /etc/pacman.d/options.conf' /etc/pacman.conf; then
|
|
sudo sed -i '/^\[options\]/a Include = /etc/pacman.d/options.conf' /etc/pacman.conf
|
|
fi
|