update scripts

This commit is contained in:
Bastian Gruber 2026-01-29 16:27:35 -04:00
parent 34f1f5d63b
commit d422ab72b5
Signed by: gruberb
GPG key ID: 426AF1CBA0530691
4 changed files with 12 additions and 13 deletions

View file

@ -31,20 +31,20 @@ sudo pacman -S --noconfirm --needed \
{{ if .hasGUI -}}
# GUI tools (only on machines with GUI)
# Check if yay is installed for AUR packages
if ! command -v yay &> /dev/null; then
echo "==> Installing yay for AUR packages..."
# Check if paru is installed for AUR packages
if ! command -v paru &> /dev/null; then
echo "==> Installing paru for AUR packages..."
cd /tmp
git clone https://aur.archlinux.org/yay.git
cd yay
git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si --noconfirm
cd -
rm -rf /tmp/yay
rm -rf /tmp/paru
fi
# Install Ghostty from AUR
echo "==> Installing Ghostty from AUR..."
yay -S --noconfirm --needed ghostty
paru -S --noconfirm --needed ghostty
{{ end -}}
{{ else if eq .pkgManager "apt" -}}

View file

@ -25,10 +25,6 @@ rustup default stable
echo "==> Installing Rust components..."
rustup component add rustfmt clippy rust-analyzer
# Install useful cargo tools
echo "==> Installing cargo tools..."
cargo install --locked cargo-watch cargo-edit cargo-outdated 2>/dev/null || true
echo "==> Rust toolchain installed successfully!"
echo " rustc: $(rustc --version)"
echo " cargo: $(cargo --version)"

View file

@ -13,10 +13,10 @@ if ! command -v fnm &> /dev/null; then
# Add fnm to PATH for this script
export PATH="$HOME/.local/share/fnm:$PATH"
eval "$(fnm env)"
eval "$(fnm env --shell bash)"
else
echo "==> fnm already installed"
eval "$(fnm env)"
eval "$(fnm env --shell bash)"
fi
# Install latest LTS Node.js

View file

@ -64,3 +64,6 @@ set -gx GPG_TTY (tty)
# Editor
set -gx EDITOR {{ .editor }}
set -gx VISUAL {{ .editor }}
# Go module cache (keep ~/go clean)
set -gx GOMODCACHE ~/.cache/go/mod