-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.txt
209 lines (171 loc) · 5.68 KB
/
setup.txt
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
# install brew
#/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
#echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/phoebe/.zprofile
#eval "$(/opt/homebrew/bin/brew shellenv)"
# Install zsh
brew install zsh
# Set default shell
chsh -s $(which zsh)
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# ZSH plugins
brew install zsh-syntax-highlighting
brew install zsh-autosuggestions
# Add the following lines to .zshrc
#source $(brew --prefix)/share/zsh-autosuggestions/zsh-syntax-highlighting.zsh
#source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
# Additional fonts
brew tap homebrew/cask-fonts
# Install additional fonts
brew tap homebrew/cask-fonts
#brew install font-source-code-pro
brew install font-fira-code
#brew install font-hack-nerd-font
#brew install font-cascadia-code
# Set up terminal
brew install --cask iterm2
# https://github.com/mbadolato/iTerm2-Color-Schemes
# Starship prompt
#need a nerd font installed
brew install starship
echo 'eval "$(starship init zsh)"' >> /Users/phoebe/.zshrc
#eval "$(starship init zsh)"
# Install mas for Apple store
brew install mas
## mas installations
#craft docs
mas install 1487937127
#goodnotes
#mas install 1444383602
#todoist
mas install 585829637
# dato
#mas install 1470584107
# Mindnode
mas install 1289197285
# install manually
#elgato software - control cneter, wave xlr, stream deck
#logi capture - no mac version
#canva for mac
# Set up my ssh key
ssh-keygen -t rsa -C "[email protected]"
ssh-add --apple-use-keychain ~/.ssh/id_rsa
# Install + configure git
brew install git
git config --global color.ui auto
git config --global user.name "Phoebe Goh"
git config --global user.email "[email protected]"
# Git credential manager: https://github.com/GitCredentialManager/git-credential-manager
brew tap microsoft/git
brew install --cask git-credential-manager-core
# set up global .gitignore
cd ~
curl https://raw.githubusercontent.com/github/gitignore/master/Global/macOS.gitignore -o ~/.gitignore
git config --global core.excludesfile ~/.gitignore
# Install powershell and Azure modules
#brew install --cask powershell
# sudo pwsh
# $env:PSModulePath
# Save-Module -Name Az -Path /usr/local/microsoft/powershell/6/Modules
# Install-Module -Name Az
# Get-Module -ListAvailable
# Install vim and ultimate vimrc
brew install vim
git clone https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh
# sh ~/.vim_runtime/install_basic_vimrc.sh
# Update vimrc
cd ~/.vim_runtime && git pull --rebase && cd -
# Maximum awesome (if needed)
#git clone https://github.com/square/maximum-awesome.git
#cd maximum-awesome
#rake
# Install Python
brew install python3
python3 -m pip install --upgrade pip
brew install pyenv
#pyenv install 3.10.6
# add pyenv init to your shell to enable shims and autocomplete
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
exec $SHELL
# Set up QuickLook
#brew install --cask \
qlcolorcode \
qlstephen \
qlmarkdown \
quicklook-json \
qlprettypatch \
quicklook-csv \
betterzip \
webpquicklook \
suspicious-package
brew install --cask visual-studio-code
# enable settings sync
# install extension vscode-icons
# live server: https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer
# Edit settings: editor.fontLigatures and set it to true under the editor.fontFamily.
# Install Docker on Mac without Docker Desktop
brew install docker docker-compose
#Compose is now a Docker plugin. For Docker to find this plugin, symlink it:
mkdir -p ~/.docker/cli-plugins
ln -sfn /opt/homebrew/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose
# Download and install latest version of Rancher Desktop
# readmes: https://docs.rancherdesktop.io/how-to-guides/create-multi-node-cluster
https://github.com/rancher-sandbox/rancher-desktop/releases
sudo mkdir /usr/local/bin
sudo chown $USER /usr/local/bin
# install k3d
# curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash
# Other useful apps
Brew install --cask karabiner-elements
brew install --cask hiddenbar
brew install --cask scroll-reverser
brew install --cask clocker
brew install --cask descript
brew install --cask discord
brew install --cask zoom
brew install --cask telegram
brew install --cask signal
# https://www.beekeeperstudio.io
# brew install --cask beekeeper-studio
#brew install tmux
#brew install --cask maccy # Clipboard manager
#brew install jq
#brew install --cask firefox
#brew install terraform
#brew install --cask minikube
#brew install awscli
#brew install azure-cli
#brew install gcloud
#brew install pandoc
#brew install watch
#brew install --cask slack
#brew install --cask macdown
#brew install --cask alfred
#brew install --cask bartender
#brew install --cask gifox
#brew install --cask dropbox
#brew install --cask whatsapp
#brew install --cask dash
# Etcher for image creation
#brew install --cask etcher
# nodejs
#https://github.com/creationix/nvm
#brew install nvm
#nvm install node
#https://pawelgrzybek.com/install-nodejs-installer-vs-homebrew-vs-nvm/
brew install node
# add /usr/local/opt/node@16/bin to path
# EU keyboard modifications\
# Download org.custom.keyboard-remap.plist from git
# This will run the following:
#hidutil property --set '{"UserKeyMapping":
# [{"HIDKeyboardModifierMappingSrc":0x700000064,
# "HIDKeyboardModifierMappingDst":0x700000035}]
#}'
# To run on boot
# sudo launchctl load -w /Library/LaunchDaemons/org.custom.keyboard-remap.plist
# See: https://www.grzegorowski.com/how-to-remap-single-mac-keyboard-key
# Logitech camera controller on m1
brew tap homebrew/cask-drivers
brew install --cask cameracontroller