From 1babf2e33422b4033ea30565281f4fe78b7db8bf Mon Sep 17 00:00:00 2001 From: thomas Date: Sun, 11 Oct 2026 17:10:21 +0100 Subject: [PATCH] Feature: Shared pacman options installed via system/install.sh 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 --- README.md | 5 +++++ system/install.sh | 11 +++++++++++ system/pacman/options.conf | 5 +++++ 3 files changed, 21 insertions(+) create mode 100755 system/install.sh create mode 100644 system/pacman/options.conf diff --git a/README.md b/README.md index 47ff190..b689728 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,11 @@ stow -d ~/Projects/dotfiles/ -t ~/ dotfiles This will sync wallpapers/config files to where they are usually located +System-level config (e.g. pacman options) lives in `system/` and is installed with sudo: +```console +~/Projects/dotfiles/system/install.sh +``` + ## 📦 Programs List of programs and tools I use. diff --git a/system/install.sh b/system/install.sh new file mode 100755 index 0000000..7700d53 --- /dev/null +++ b/system/install.sh @@ -0,0 +1,11 @@ +#!/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 diff --git a/system/pacman/options.conf b/system/pacman/options.conf new file mode 100644 index 0000000..8f806af --- /dev/null +++ b/system/pacman/options.conf @@ -0,0 +1,5 @@ +# Shared pacman [options], included from /etc/pacman.conf. +# Installed to /etc/pacman.d/options.conf by system/install.sh. +Color +#ILoveCandy +#VerbosePkgLists