Update install script

This commit is contained in:
Tobias Reisinger 2024-01-13 00:17:09 +01:00
parent 8f587175ea
commit b645f1982d
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE

View file

@ -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"