.dotfiles-meta/install.sh

15 lines
564 B
Bash
Raw Normal View History

2022-11-15 22:24:39 +00:00
#!/usr/bin/sh
2024-01-12 23:17:09 +00:00
git clone --bare https://git.serguzim.me/serguzim/.dotfiles.git "$HOME/.local/share/yadm/repo.git" || exit
2022-11-15 22:23:17 +00:00
2024-01-12 23:17:09 +00:00
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"