From b645f1982d74a1630161abe461754097b1f2f31f Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Sat, 13 Jan 2024 00:17:09 +0100 Subject: [PATCH] Update install script --- install.sh | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index 7105002..1b38202 100755 --- a/install.sh +++ b/install.sh @@ -1,10 +1,14 @@ #!/usr/bin/sh -git clone --bare https://git.serguzim.me/serguzim/.dotfiles.git "$HOME/.dotfiles" || exit +git clone --bare https://git.serguzim.me/serguzim/.dotfiles.git "$HOME/.local/share/yadm/repo.git" || exit -alias .f='git --git-dir="$HOME/.dotfiles"' -.f config core.bare false -.f config core.worktree "$HOME" -.f config status.showUntrackedFiles no -.f remote set-url --push origin "git@git.serguzim.me:serguzim/.dotfiles.git" -.f stash push -m 'Stash before dotfiles' +alias yadm='git --git-dir="$HOME/.local/share/yadm/repo.git"' +yadm config core.bare false +yadm config core.worktree "$HOME" +yadm config status.showUntrackedFiles no +yadm remote set-url --push origin "git@git.serguzim.me:serguzim/.dotfiles.git" +yadm status + +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"