Make bootstrap arch idempotent
This commit is contained in:
@@ -1,12 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Installs requirements for my arch setup.
|
# Installs requirements for my arch setup.
|
||||||
|
|
||||||
set -e
|
set -euo pipefail
|
||||||
|
|
||||||
sudo pacman -Suy --noconfirm archlinux-keyring
|
# Refresh the keyring first, then do the full upgrade against synced dbs.
|
||||||
sudo pacman -Suy --noconfirm
|
sudo pacman -Sy --noconfirm archlinux-keyring
|
||||||
|
sudo pacman -Su --noconfirm
|
||||||
|
|
||||||
sudo pacman -Sy --noconfirm \
|
sudo pacman -S --needed --noconfirm \
|
||||||
fd \
|
fd \
|
||||||
tmux \
|
tmux \
|
||||||
nvm \
|
nvm \
|
||||||
@@ -28,19 +29,18 @@ sudo pacman -Sy --noconfirm \
|
|||||||
|
|
||||||
bob install nightly
|
bob install nightly
|
||||||
bob use nightly
|
bob use nightly
|
||||||
vim --version
|
nvim --version
|
||||||
|
|
||||||
if [ ! -d /home/wholteza/repos/yay ]; then
|
if [ ! -d "$HOME/repos/yay" ]; then
|
||||||
cd ~
|
mkdir -p "$HOME/repos"
|
||||||
mkdir -p repos
|
cd "$HOME/repos"
|
||||||
cd repos
|
sudo pacman -S --needed --noconfirm git base-devel
|
||||||
sudo pacman -S --needed git base-devel
|
|
||||||
git clone https://aur.archlinux.org/yay.git
|
git clone https://aur.archlinux.org/yay.git
|
||||||
cd yay
|
cd yay
|
||||||
makepkg -si
|
makepkg -si --noconfirm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
yay -S --noconfirm \
|
yay -S --needed --noconfirm \
|
||||||
fnm \
|
fnm \
|
||||||
oh-my-posh \
|
oh-my-posh \
|
||||||
wezterm
|
wezterm
|
||||||
@@ -51,5 +51,3 @@ eval "$(fnm env --use-on-cd --version-file-strategy=recursive)"
|
|||||||
fnm install 24
|
fnm install 24
|
||||||
fnm use 24
|
fnm use 24
|
||||||
|
|
||||||
npm install
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user