.dotfiles/.config/yadm/bootstrap

30 lines
835 B
Plaintext
Raw Normal View History

2023-10-18 23:23:36 +00:00
#!/usr/bin/env sh
2024-05-13 11:49:44 +00:00
echo "Loading environment variables"
. "$HOME/.config/environment"
if [ ! -x "$(command -v autoinstall)" ];
then
echo "Installing autoinstall command"
mkdir -p "$HOME/.local/bin"
curl -Lo "$HOME/.local/bin/autoinstall" https://git.serguzim.me/serguzim/tools/releases/download/latest/autoinstall
chmod +x "$HOME/.local/bin/autoinstall"
fi
2024-05-13 11:55:14 +00:00
if [ ! -x "$(command -v yadm)" ];
then
echo "Installing yadm command"
autoinstall exe "https://github.com/TheLocehiliosan/yadm/raw/master/yadm" "yadm"
fi
echo "Configuring yadm"
yadm gitconfig core.bare false
yadm gitconfig core.worktree "$HOME"
yadm gitconfig status.showUntrackedFiles no
yadm remote set-url --push origin "git@git.serguzim.me:serguzim/.dotfiles.git"
2024-05-13 11:49:44 +00:00
echo "Autoinstalling base"
autoinstall run base
2023-10-19 00:20:28 +00:00
echo "Don't forget to decrypt yadm secrets"