Improve autoinstall and yadm bootstrap
This commit is contained in:
parent
5cecab18eb
commit
4fa809a506
4 changed files with 141 additions and 159 deletions
.config/yadm
|
@ -3,12 +3,6 @@
|
|||
echo "Loading environment variables"
|
||||
. "$HOME/.config/environment"
|
||||
|
||||
echo "Configuring yadm"
|
||||
yadm gitconfig core.bare false
|
||||
yadm gitconfig core.worktree "$HOME"
|
||||
yadm gitconfig status.showUntrackedFiles no
|
||||
yadm remote set-url --push origin "git@git.serguzim.me:serguzim/.dotfiles.git"
|
||||
|
||||
if [ ! -x "$(command -v autoinstall)" ];
|
||||
then
|
||||
echo "Installing autoinstall command"
|
||||
|
@ -17,6 +11,18 @@ then
|
|||
chmod +x "$HOME/.local/bin/autoinstall"
|
||||
fi
|
||||
|
||||
if [ ! -x "$(command -v yadm)" ];
|
||||
then
|
||||
echo "Installing yadm command"
|
||||
autoinstall exe "https://github.com/TheLocehiliosan/yadm/raw/master/yadm" "yadm"
|
||||
fi
|
||||
|
||||
echo "Configuring yadm"
|
||||
yadm gitconfig core.bare false
|
||||
yadm gitconfig core.worktree "$HOME"
|
||||
yadm gitconfig status.showUntrackedFiles no
|
||||
yadm remote set-url --push origin "git@git.serguzim.me:serguzim/.dotfiles.git"
|
||||
|
||||
echo "Autoinstalling base"
|
||||
autoinstall run base
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue