-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup_new_mac.sh
executable file
·102 lines (75 loc) · 2.2 KB
/
setup_new_mac.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#!/usr/bin/env bash
set -uxo pipefail
# set -e
xcode-select --install
which brew || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# for Python that works with fastai:
brew install python
# then follow https://pnote.eu/notes/fastai-pytorch-mac-setup/
# AI:
# better: https://docs.anaconda.com/miniconda/
# brew install --cask anaconda
# show hidden files:
defaults write com.apple.Finder AppleShowAllFiles true
killall Finder
brew install powerlevel10k
brew install gh # github cli
brew install --cask iterm2
brew install --cask visual-studio-code
code_cmd="/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code"
[ -r "$code_cmd" ] && ln -s "$code_cmd" "/usr/local/bin/code"
brew install --cask flycut
brew install --cask rectangle
brew install watch
brew install zsh zsh-completions
# MAYBE:
sudo echo "$(which zsh)" >> /etc/shells
chsh -s $(which zsh)
brew install golang
export GOPATH="${HOME}/.go"
export GOROOT="$(brew --prefix golang)/libexec"
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"
mkdir -p "${GOPATH}"
mkdir -p "${GOPATH}/src/github.com"
go install github.com/justjanne/powerline-go@latest
brew install yarn
brew install git
brew install hub
brew tap git-duet/tap
brew install git-duet
brew tap heroku/brew
brew install heroku
heroku autocomplete --refresh-cache
brew install rbenv
rbenv init
brew install telnet
# brew install --cask multipass
brew install redis
brew install cmake
brew install --cask chromedriver
brew install lnav
brew install postgresql@16
brew services start postgresql@16
brew install memcached
brew services start memcached
brew install openvpn
brew install --cask ngrok
brew install shellcheck
brew install nginx
brew services start nginx
brew install md5sha1sum
brew install --cask docker # docker compose too
brew install jq
# you could check if a more recent version exists here:
# https://github.com/nvm-sh/nvm/tags
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
brew install openjdk
# Set up passwordless sudo:
# sudo visudo
# %admin ALL = (ALL) NOPASSWD: ALL
# bun (JS)
brew install oven-sh/bun/bun
brew install supabase/tap/supabase
# java
brew install java
brew install maven