Fix hostname detection on bashrc

Also in this commit, I do "git remote add" to the sourcehut mirror
of my dotfiles if not exists locally

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.xyz>
This commit is contained in:
Andrei Jiroh Halili 2024-04-13 11:25:23 +00:00
parent f9ca813505
commit 076ddb88b5
No known key found for this signature in database
GPG key ID: 67BFC91B3DA12BE8
2 changed files with 12 additions and 7 deletions

View file

@ -11,5 +11,5 @@ elif [ -d "$HOME/.git" ] && [ ! -d "$HOME/.local/share/yadm/repo.git" ]; then
fi
echo "Setting git remote URLs to SSH"
git remote set-url origin ssh://git@mau.dev/andreijiroh.dev/dotfiles || true
git remote set-url hut ssh://git@git.sr.ht/~ajhalili2006/dotfiles || true
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