From efa3f7abe395a5966cb2fcfd7649e22463339785 Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Thu, 12 Oct 2023 19:24:13 +0200 Subject: add bootstrap instructions --- bootstrap | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 bootstrap (limited to 'bootstrap') diff --git a/bootstrap b/bootstrap new file mode 100644 index 0000000..bd31ed1 --- /dev/null +++ b/bootstrap @@ -0,0 +1,30 @@ +1. Install dependencies + + brew install findutils git-crypt + +2. Import GPG key F906CCEC + +3. Clone without private submodule + + cd && \ + mkdir .dotfiles && \ + cd $_ && \ + git clone https://git.segundo.io/dotfiles . + +4. Add the private directory using https: + + rm -rf private && \ + git clone https://github.com/someone-stole-my-name/dotfiles-private.git private && \ + cd private && \ + git-crypt unlock && \ + cd .. + +5. Install as usual by running make + +6. Restore the original submodule remote: + + perl -i -pe ' + $http="https://github.com/someone-stole-my-name/dotfiles-private.git"; + $ssh="git\@github.com:someone-stole-my-name/dotfiles-private.git"; + s{\Q$http}{$ssh}g; + ' private/.git/config -- cgit v1.2.3