Update install.sh

This commit is contained in:
2026-11-29 23:17:11 +03:00
committed by GitHub
parent 5541ddb9f6
commit 260f6d2958
+7 -11
View File
@@ -8,15 +8,10 @@ set -euo pipefail
DOTFILES_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" DOTFILES_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ZSH_CUSTOM="${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}" ZSH_CUSTOM="${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}"
# Arch packages the dotfiles rely on; yay only runs if something is missing. # Fedora packages the dotfiles rely on (dnf skips ones already installed).
pkgs=( sudo dnf install -y \
stow git curl zsh gnupg pinentry stow git curl zsh gnupg2 pinentry-qt \
neovim ripgrep fd fzf zoxide eza wl-clipboard gcc make jdk21-openjdk neovim ripgrep fd-find fzf zoxide wl-clipboard gcc make
)
mapfile -t missing < <(pacman -T "${pkgs[@]}" || true)
if [ "${#missing[@]}" -gt 0 ]; then
yay -S --needed "${missing[@]}"
fi
clone_if_missing() { clone_if_missing() {
local url="$1" dst="$2" local url="$1" dst="$2"
@@ -37,6 +32,7 @@ clone_if_missing https://github.com/zsh-users/zsh-completions "$ZSH_CUSTOM/plugi
clone_if_missing https://github.com/MichaelAquilina/zsh-you-should-use "$ZSH_CUSTOM/plugins/you-should-use" clone_if_missing https://github.com/MichaelAquilina/zsh-you-should-use "$ZSH_CUSTOM/plugins/you-should-use"
clone_if_missing https://github.com/MichaelAquilina/zsh-autoswitch-virtualenv "$ZSH_CUSTOM/plugins/autoswitch_virtualenv" clone_if_missing https://github.com/MichaelAquilina/zsh-autoswitch-virtualenv "$ZSH_CUSTOM/plugins/autoswitch_virtualenv"
# Stow refuses to link over a real (non-symlink) file, so move any # Stow refuses to link over a real (non-symlink) file, so move any
# conflicting pre-existing file aside first (e.g. the .zshrc oh-my-zsh's # conflicting pre-existing file aside first (e.g. the .zshrc oh-my-zsh's
# own installer just wrote above). # own installer just wrote above).
@@ -74,8 +70,8 @@ gpgconf --kill gpg-agent 2>/dev/null || true
cat <<'EOF' cat <<'EOF'
Done. This does NOT install (grab these separately if missing): Done. This does NOT install (grab these separately if missing):
- pyenv, pnpm, deno, rustup, docker - nvm, pyenv, bun, pnpm, deno, rustup, docker
- ghostty, lazygit, tree-sitter-cli, VS Code (AUR) - ghostty, lazygit, tree-sitter-cli, VS Code (not in Fedora's default repos)
- a Nerd Font (JetBrains Mono Nerd Font) — set it as your terminal's font - a Nerd Font (JetBrains Mono Nerd Font) — set it as your terminal's font
Start a new shell to pick everything up: exec zsh Start a new shell to pick everything up: exec zsh