summaryrefslogtreecommitdiff
path: root/bootstrap
blob: bd31ed19994fb5ab4504242ae0ba189286a5dd1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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