-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·38 lines (26 loc) · 849 Bytes
/
Copy pathbootstrap.sh
File metadata and controls
executable file
·38 lines (26 loc) · 849 Bytes
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
#!/usr/bin/env bash
# Ask for administrator password upfront
sudo -v
# sudo keep-alive
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Install xcode developer tools
xcode-select --install
sudo xcodebuild -license accept
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install Brewfile contents
brew bundle
# Configure macos defaults
./.macos
# install rust
rustup-init
# install rvm and ruby
\curl -sSL https://get.rvm.io | bash -s stable --ruby
# Switch shell to Homebrew zsh
sudo dscl . -create /Users/$USER UserShell /opt/homebrew/bin/zsh
# Configure fnm
fnm install latest
fnm use latest
# Install various things that aren't in homebrew
# git-branchless (https://github.com/arxanas/git-branchless)
cargo install git-branchless