From aefa68f24c103243dac93dd77edb5e063407c88f Mon Sep 17 00:00:00 2001 From: thomas Date: Thu, 22 Oct 2026 08:17:25 +0100 Subject: [PATCH] Fix: Bootstrap oh-my-zsh, its plugins and the bar's Cascadia font on new installs Co-Authored-By: Claude Opus 5.5 --- bootstrap.sh | 18 ++++++++++++++++++ system/packages.txt | 1 + 2 files changed, 19 insertions(+) diff --git a/bootstrap.sh b/bootstrap.sh index 9ba67cd..10da5b5 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -124,6 +124,24 @@ for app in $(packages installer); do esac done +step "oh-my-zsh and plugins" +# .zshrc sources ~/.oh-my-zsh/oh-my-zsh.sh and loads two custom plugins from it. +# A plain clone is all oh-my-zsh needs; its installer would also write a template +# ~/.zshrc, which then conflicts with the stowed one. +if [[ ! -d "$HOME/.oh-my-zsh" ]]; then + git clone --depth 1 https://github.com/ohmyzsh/ohmyzsh.git "$HOME/.oh-my-zsh" +else + echo "oh-my-zsh: already installed" +fi +zsh_custom="$HOME/.oh-my-zsh/custom/plugins" +for plugin in zsh-autosuggestions zsh-syntax-highlighting; do + if [[ -d "$zsh_custom/$plugin" ]]; then + echo "$plugin: already installed" + else + git clone --depth 1 "https://github.com/zsh-users/$plugin" "$zsh_custom/$plugin" + fi +done + # --- Optional: SVT-AV1 essential + ffmpeg rebuild ---------------------------- if [[ $svt_av1 == ask ]]; then diff --git a/system/packages.txt b/system/packages.txt index 0c49e27..a30f2c6 100644 --- a/system/packages.txt +++ b/system/packages.txt @@ -104,6 +104,7 @@ thunar-archive-plugin # Adds archive operations to the Thunar file thunar-media-tags-plugin # Adds special features for media files to the Thunar File Manager thunar-shares-plugin # Thunar plugin to quickly share a folder using Samba without requiring root access thunar-volman # Automatic management of removable drives and media for Thunar +ttf-cascadia-code-nerd # Patched font Cascadia Code (CaskaydiaCove) — Quickshell bar text and icons ttf-dejavu # Font family based on the Bitstream Vera Fonts with a wider range of characters ttf-iosevka-nerd # Patched font Iosevka from nerd fonts library ttf-jetbrains-mono # Typeface for developers, by JetBrains