mirror of
https://github.com/andwati/dotfiles.git
synced 2026-11-30 06:28:49 +00:00
Update install.sh
This commit is contained in:
+7
-11
@@ -8,15 +8,10 @@ set -euo pipefail
|
||||
DOTFILES_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
ZSH_CUSTOM="${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}"
|
||||
|
||||
# Arch packages the dotfiles rely on; yay only runs if something is missing.
|
||||
pkgs=(
|
||||
stow git curl zsh gnupg pinentry
|
||||
neovim ripgrep fd fzf zoxide eza wl-clipboard gcc make jdk21-openjdk
|
||||
)
|
||||
mapfile -t missing < <(pacman -T "${pkgs[@]}" || true)
|
||||
if [ "${#missing[@]}" -gt 0 ]; then
|
||||
yay -S --needed "${missing[@]}"
|
||||
fi
|
||||
# Fedora packages the dotfiles rely on (dnf skips ones already installed).
|
||||
sudo dnf install -y \
|
||||
stow git curl zsh gnupg2 pinentry-qt \
|
||||
neovim ripgrep fd-find fzf zoxide wl-clipboard gcc make
|
||||
|
||||
clone_if_missing() {
|
||||
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-autoswitch-virtualenv "$ZSH_CUSTOM/plugins/autoswitch_virtualenv"
|
||||
|
||||
|
||||
# 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
|
||||
# own installer just wrote above).
|
||||
@@ -74,8 +70,8 @@ gpgconf --kill gpg-agent 2>/dev/null || true
|
||||
cat <<'EOF'
|
||||
|
||||
Done. This does NOT install (grab these separately if missing):
|
||||
- pyenv, pnpm, deno, rustup, docker
|
||||
- ghostty, lazygit, tree-sitter-cli, VS Code (AUR)
|
||||
- nvm, pyenv, bun, pnpm, deno, rustup, docker
|
||||
- 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
|
||||
|
||||
Start a new shell to pick everything up: exec zsh
|
||||
|
||||
Reference in New Issue
Block a user