Improve autoinstall and yadm bootstrap

This commit is contained in:
Tobias Reisinger 2024-05-13 13:55:14 +02:00
parent 5cecab18eb
commit 4fa809a506
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
4 changed files with 141 additions and 159 deletions
.config/yadm

View file

@ -3,12 +3,6 @@
echo "Loading environment variables"
. "$HOME/.config/environment"
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"
if [ ! -x "$(command -v autoinstall)" ];
then
echo "Installing autoinstall command"
@ -17,6 +11,18 @@ then
chmod +x "$HOME/.local/bin/autoinstall"
fi
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"
echo "Autoinstalling base"
autoinstall run base