-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sh
executable file
·57 lines (33 loc) · 1.15 KB
/
init.sh
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/env bash
cd ~ || exit
printf 'Disabling macOS Gatekeeper (temporarily)\n'
spctl --master-disable
#
# Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# git
brew install git grep
# ssh-keygen
ssh-keygen -q -t rsa -N '' -f ~/.ssh/id_rsa <<<y >/dev/null 2>&1
# copy generated SSH key
printf "Copied SSH key to clipboard"
pbcopy <~/.ssh/id_rsa.pub
printf "Login to Github and paste the SSH key:\n\nhttps://github.com/settings/ssh/new\n\n"
git clone git@github.com:antoni/dotfiles.git
cd dotfiles || exit
# Clone scripts repository
git clone git@github.com:antoni/scripts.git ~/scripts
# Install everything else we need
./install/install.sh
# Set deafult browser
defbro com.google.Chrome
# VSCode settings sync
printf 'You need to configure VSCode settings sync manually ("Turn on Settings sync")'
printf 'Login to Github using (Github CLI)'
gh auth login
# GitHub NPM registry login
printf 'Login to Github NPM registry'
npm config set registry https://npm.pkg.github.com/
npm login --registry=https://npm.pkg.github.com/
printf 'Enabling back macOS Gatekeeper\n'
spctl --master-disable