Skip to content

Instantly share code, notes, and snippets.

@pomartel
Last active January 24, 2026 22:44
Show Gist options
  • Select an option

  • Save pomartel/9c597f21340ce153e381c51b20a78956 to your computer and use it in GitHub Desktop.

Select an option

Save pomartel/9c597f21340ce153e381c51b20a78956 to your computer and use it in GitHub Desktop.
Script that initializes an existing yadm git repo
#!/usr/bin/bash
echo "Installing yadm"
sudo pacman -S --noconfirm yadm
echo "Cloning yadm repository"
yadm clone -f "git@github.com:pomartel/config-files.git"
echo "Force-resetting work-tree (discarding local conflicting files)..."
yadm reset --hard
echo "Creating symlinks for alternate files"
yadm alt
echo "Decrypting secret files"
yadm decrypt
echo "Cloning Install script repository"
git clone git@github.com:pomartel/Installation-Scripts.git ~/Install
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment