This is my steps to install tools and staff on MacOS from scratch.
- Install the CLI tools for Xcode:
xcode-select —-install- Install Homebrew:
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bashMake sure you follow Next steps in the end of Homebrew's instruction
Then run Makefile to install brew packages, casks and macs with command:
make bundle- Use Zsh from Homebrew instead of MacOs's Zsh link:
# add `zsh` to the system /etc/shells
sudo sh -c "echo /opt/homebrew/bin/zsh >> /etc/shells"
# use the next command line to change shell
chsh -s /opt/homebrew/bin/zsh
# confirm whether it has changed
dscl . -read /Users/$USERNAME UserShell
UserShell: /opt/homebrew/bin/zsh- Install Oh-my-zsh and plugins:
curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh | bashgit clone https://github.com/zsh-users/zsh-syntax-highlighting $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/agkozak/zsh-z $ZSH_CUSTOM/plugins/zsh-z
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k- Link configs for
zsh,tmux,vscode,nvimandalacritty, install extensions for vscode
make links
make vscode- Move this files and folders manually from other computers:
.aws
.ssh
.zsh_history
.gitconfig
pgp keys
- Set defaults for MacOS:
defaults write -g AppleFontSmoothing -int 0