2023-12-16 02:51:57 +00:00
|
|
|
#!/usr/bin/env bash
|
2023-11-25 04:33:31 +00:00
|
|
|
|
2023-12-16 02:51:57 +00:00
|
|
|
set -x
|
|
|
|
|
|
|
|
if [ ! -d "$HOME/.git" ] && [ -d "$HOME/.local/share/yadm/repo.git" ]; then
|
2023-11-25 04:38:24 +00:00
|
|
|
echo "Symlinking ~/.git to ~/.local/share/yadm/repo.git for compatibility"
|
|
|
|
ln -s ~/.local/share/yadm/repo.git ~/.git
|
2023-12-16 02:51:57 +00:00
|
|
|
elif [ -d "$HOME/.git" ] && [ ! -d "$HOME/.local/share/yadm/repo.git" ]; then
|
|
|
|
echo "Symlinking ~/.local/share/yadm/repo.git to ~/.git for compatibility"
|
|
|
|
ln -s ~/.git ~/.local/share/yadm/repo.git
|
2023-11-25 04:38:24 +00:00
|
|
|
fi
|
|
|
|
|
2023-12-16 02:51:57 +00:00
|
|
|
echo "Setting git remote URLs to SSH"
|
2024-04-13 11:25:23 +00:00
|
|
|
git remote set-url --add origin ssh://git@mau.dev/andreijiroh.dev/dotfiles || true
|
|
|
|
git remote set-url --add hut ssh://git@git.sr.ht/~ajhalili2006/dotfiles || git remote add hut ssh://git@git.sr.ht/~ajhalili2006/dotfiles
|