- install 1Password
- doing it first to get access to github ssh key
- enable ssh agent: Settings -> Developer -> Enable SSH Agent
- clone this repo
cd ~/code && git clone git@github.com:kroleg/macos.git os
- install ohmyzsh
- change
ZSH_CUSTOMto point to zsh/custom folder in this repo andZSH_THEMEtokrolegsed -i.bak \ -e "s|^#.*\(ZSH_CUSTOM=\).*|\1\"$PWD/zsh/custom\"|" \ -e "s|^\(ZSH_THEME=\).*|\1\"kroleg\"|" ~/.zshrc cat ~/.zshrc | grep -E "^ZSH_CUSTOM|^ZSH_THEME"
- restart terminal
- install command-line tools (probably installed already cause git requires them)
- install Homebrew from .pkg
- IF
brewnot accessible from terminal (which brewfails) add homebrew to shell scriptecho 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)"
- install stuff from brewfiles:
- base
brew bundle install
- work related
brew bundle install --file devops.Brewfile`
- base
- useful key bindings and fuzzy completion
$(brew --prefix)/opt/fzf/install - Ghostty setup
- set path to config (run in this folder)
mkdir -p ~/.config/ghostty && echo "config-file = $(pwd)/ghostty/config" > ~/.config/ghostty/config
- set path to config (run in this folder)
Should have been installed via brew above You need to also:
- export settings from prev laptop
- import into new one
Installed via brew You need to also:
- turn on settings sync
git config --global user.name "YOUR NAME"
git config --global user.email "YOUR EMAIL"
git config --global core.excludesfile "$(pwd)/git/global-gitignore"setup personal git email for this repo
git config user.email "***@gmail.com"- Log in to google accounts in Apple Preferences > Internet Accounts
- setup alt+Tab to switch windows
- Pref -> Keyboard -> Keyboard shortcuts -> Keyboard - Moved focus to next window
- disable hot corners
- map capslock to
Esc - allow to use tab to switch between buttons in system popups
- go to Preferences -> Keyboard -> turn ON Keyboard navigation
- disable unwanted shortcuts in Preferences -> Keyboard -> Shortcuts (especially Services -> Text)
- Screenshots should go to Pictures folder
- Press Command + Shift + 5.
- Click on Options.
- Now either pick a folder that is listed, or choose Other Location.
- If you choose Other Location you can navigate to the folder you wish the screenshot to go to, or create a folder if required.
- Once you have changed the location that is where your screenshots will go until you change the location again.