From 2caac2d50c8103e489f22a6f0769eb3683515a8c Mon Sep 17 00:00:00 2001 From: Phuntsok Drak-pa Date: Mon, 14 Oct 2019 21:18:35 +0200 Subject: [PATCH] updated bootstrap script --- .yadm/bootstrap | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.yadm/bootstrap b/.yadm/bootstrap index 19c3640..e5c4a3d 100644 --- a/.yadm/bootstrap +++ b/.yadm/bootstrap @@ -28,6 +28,15 @@ yay -Syua emacs python-envtpl-git printf "\n# Getting yadm susbmodules ####################################################\n" yadm submodule update --init --recursive +if ! test (echo "phundrak" | sed -e "s/^.*$USER//I") + printf "\n# Update yadm’s remotes #######################################################\n" + yadm remote set-url origin git@labs.phundrak.fr:phundrak/dotfiles.git + yadm remote add github git@github.com:phundrak/dotfiles.git + + printf "\n# Decrypt encrypted dotfiles ##################################################\n" + yadm decrypt +end + printf "\n# Generating alt files ########################################################\n" yadm alt