zsh plugins
This commit is contained in:
@@ -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
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user