From 19f2f80164d8dc207eb80d8e3bc47b885b20a374 Mon Sep 17 00:00:00 2001 From: Jonas H Date: Fri, 19 Jun 2026 11:34:25 +0200 Subject: [PATCH] zsh plugins --- install-deps.sh | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/install-deps.sh b/install-deps.sh index 61d2d6b..4f3afc9 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -73,7 +73,6 @@ COMMON_PACKAGES=( tmux ripgrep fzf - yazi # Flatpak runtime (Signal) flatpak ) @@ -86,6 +85,7 @@ case "$DISTRO" in networkmanager fd python-i3ipc + yazi ) PACKAGES=("${COMMON_PACKAGES[@]}" "${DISTRO_PACKAGES[@]}") @@ -158,11 +158,38 @@ warn_missing() { fi } +warn_missing yazi "not in Fedora repos — enable COPR: 'dnf copr enable atim/yazi && dnf install yazi'" warn_missing autotiling "install via pip: pip install --user autotiling" warn_missing eww "install from https://github.com/elkowar/eww/releases" warn_missing wezterm "install from https://wezfurlong.org/wezterm/install/linux.html" warn_missing stylua "nvim formatter — install via :MasonInstall stylua or 'cargo install stylua'" +# --------------------------------------------------------------------------- +# Zsh plugins (git submodules) +# --------------------------------------------------------------------------- + +header "Zsh plugins" + +( + cd "$DOTFILES_DIR" + if git submodule status | grep -q '^-'; then + info "Initialising git submodules..." + git submodule update --init --recursive + else + info "Updating git submodules..." + git submodule update --recursive --remote + fi +) + +for plugin_dir in "$DOTFILES_DIR"/zshrc/.zsh/plugins/*/; do + plugin_name="$(basename "$plugin_dir")" + if [[ -f "$plugin_dir/${plugin_name}.plugin.zsh" || -f "$plugin_dir/${plugin_name}.zsh" ]]; then + ok "$plugin_name" + else + warn "$plugin_name — submodule directory appears empty" + fi +done + # --------------------------------------------------------------------------- # Starship # ---------------------------------------------------------------------------