17 lines
602 B
Bash
Executable file
17 lines
602 B
Bash
Executable file
#!/usr/bin/sh
|
|
|
|
git clone --bare https://git.serguzim.me/serguzim/.dotfiles.git "$HOME/.local/share/yadm/repo.git" || exit
|
|
|
|
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
|
|
echo "Stashing changes..."
|
|
yadm stash
|
|
|
|
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"
|