-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmacos-setup.sh
More file actions
executable file
·42 lines (30 loc) · 1.22 KB
/
macos-setup.sh
File metadata and controls
executable file
·42 lines (30 loc) · 1.22 KB
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
# Install command line tools (includes git)
xcode-select --install
# rm -rf ~/Library/Application\ Support/Code/User/settings.json
# ln ./vscode.json ~/Library/Application\ Support/Code/User/settings.json
# rm -rf ~/.gitconfig
# ln ./.gitconfig ~/.gitconfig
# rm -rf ~/.gitconfig
# ln ./.default-npm-packages ~/.default-npm-packages
# Use git-credential-manager instead
# git config --global credential.helper osxkeychain
git config --global core.editor "code --wait"
# Show hidden files in finder
defaults write com.apple.finder AppleShowAllFiles True
# defaults write com.apple.finder AppleShowAllFiles YES
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# https://stackoverflow.com/a/44719239
# brew install docker --cask
## Not managed by homebrew, self updating
brew install --cask \
obsidian \
visual-studio-code \
iterm2 \
google-chrome \
spotify
# https://asdf-vm.com/guide/getting-started.html
# ln -sf "$(pwd)/.tool-versions" ~/.tool-versions
# asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
# asdf install
asdf reshim nodejs # Must be run after every `npm install -g` call
nu -e '"source ~/workspace/dotfiles/config.nu" | save $env.config-path'