Add bos-update + replicate the dev zsh shell
bos-update: one command that updates both BOS channels — pacman -Syu (snap-pac snapshotted) and bakery update --all — best-effort so one failing doesn't abort the other. Baked into the live env and skel. Shell: match the dev laptop's zsh. Ship Powerlevel10k + zsh-autosuggestions, zsh-history-substring-search and zsh-syntax-highlighting, sourced from the distro packages (no oh-my-zsh framework) in the correct order, plus the dev .p10k.zsh. Powerlevel10k is AUR-only, so it's republished to [breadway] via packaging/powerlevel10k + a CI workflow (builds libgit2 + gitstatus from source), same pattern as bibata / zen-browser-bin. skel/.zshrc keeps the BOS QoL aliases and pywal palette import, with `update` aliased to bos-update. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
b587f2206e
commit
db5728c0b3
7 changed files with 1966 additions and 13 deletions
35
.forgejo/workflows/powerlevel10k.yml
Normal file
35
.forgejo/workflows/powerlevel10k.yml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
name: Build and publish powerlevel10k
|
||||
|
||||
# Powerlevel10k (the BOS default zsh prompt) is AUR-only, so BOS maintains an
|
||||
# in-house PKGBUILD and publishes the built package to the [breadway] repo.
|
||||
# Builds gitstatus + libgit2 from source, so it needs cmake + zsh beyond base-devel.
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'packaging/powerlevel10k/**'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
powerlevel10k:
|
||||
runs-on: [self-hosted, hestia]
|
||||
container:
|
||||
image: archlinux:latest
|
||||
steps:
|
||||
- name: Build and publish
|
||||
env:
|
||||
PUBLISH_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
pacman -Syu --noconfirm base-devel git cmake zsh
|
||||
useradd -m builder
|
||||
git config --global --add safe.directory '*'
|
||||
git clone --depth 1 --branch "${GITHUB_REF_NAME}" \
|
||||
"https://git.breadway.dev/${GITHUB_REPOSITORY}.git" /home/builder/src
|
||||
chown -R builder:builder /home/builder/src
|
||||
su builder -c "cd /home/builder/src/packaging/powerlevel10k && makepkg -f --noconfirm --nocheck"
|
||||
PKG=$(find /home/builder/src/packaging/powerlevel10k -name '*.pkg.tar.zst' | head -1)
|
||||
curl -fsS -X PUT \
|
||||
-H "Authorization: token ${PUBLISH_TOKEN}" \
|
||||
-H "Content-Type: application/octet-stream" \
|
||||
--data-binary "@${PKG}" \
|
||||
"https://git.breadway.dev/api/packages/Breadway/arch/os"
|
||||
Loading…
Add table
Add a link
Reference in a new issue