diff options
Diffstat (limited to 'bootstrap')
-rw-r--r-- | bootstrap | 30 |
1 files changed, 30 insertions, 0 deletions
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 |