macOS Monterey, initial setup
- language, country, regional settings, accessibility, network, skip migration assistant, apple id
- computer account (uncheck "Allow my Apple ID to reset this password")
- skip icloud keychain activation
- find my
- make this your new mac (customize)
- enable location services
- uncheck analytics
- skip screen time setup
- uncheck enable ask siri
- uncheck filevault encryption (will be enabled later)
- touch id
- skip apple pay setup
- dark mode
- software update
- reboot
- uncheck "Store files from Documents and Desktop in iCloud Drive"
mkdir -p ~/src && mkdir -p ~/src/github.com
xcode-select --install
git clone https://github.com/hulkk/dotfiles.git ~/src/github.com/dotfiles
cd ~/src/github.com/dotfiles
./macos/cis_monterey_1.1_level_1.sh
./macos/privacy.sh
./macos/configure.sh
install brew, script source https://brew.sh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Note Add homebrew to your PATH as per instructions (.zprofile)
brew bundle --file=~/src/github.com/dotfiles/homebrew/Brewfile
Note Due to mas api limitations apps can't be purchased using this method
brew bundle --file=~/src/github.com/dotfiles/homebrew/mas
install oh-my-zsh, script source https://ohmyz.sh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Note For the first time the app needs to be opened in Finder with ctrl click due to Apple security features
cp ~/src/github.com/dotfiles/iterm2/fonts/SourceCodePro+Powerline+Awesome+Regular.ttf ~/Library/Fonts
defaults write com.googlecode.iterm2.plist PrefsCustomFolder -string "~/src/github.com/dotfiles/iterm2"
defaults write com.googlecode.iterm2.plist LoadPrefsFromCustomFolder -bool true
# Override local entry to enable italics without breaking outgoing SSH connections
infocmp xterm-256color > /tmp/xterm-256color.terminfo
printf '\tsitm=\\E[3m, ritm=\\E[23m,\n' >> /tmp/xterm-256color.terminfo
tic /tmp/xterm-256color.terminfo
ln -sf ~/src/github.com/dotfiles/zsh/.zshrc ~/.zshrc
ln -sf ~/src/github.com/dotfiles/vim/.vimrc ~/.vimrc
ln -sf ~/src/github.com/dotfiles/tmux/.tmux.conf ~/.tmux.conf
mkdir -p ~/.config/yamllint && ln -sf ~/src/github.com/dotfiles/yamllint/config ~/.config/yamllint/config
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
echo `tput sitm`italics`tput ritm`
printf "\x1b[38;2;255;100;0mTRUECOLOR\x1b[0m\n"
# enable diff-so-fancy
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"