Skip to content

Latest commit

 

History

History
49 lines (43 loc) · 1.55 KB

README.md

File metadata and controls

49 lines (43 loc) · 1.55 KB

⚡️ Unboxing → developing

To get up and running with a new macOS device:

  1. Install Command Line Tools for Xcode and Rosetta 2:
xcode-select --install
softwareupdate --install-rosetta
  1. Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Install my Brewfile with Homebrew Bundle:
brew bundle install --file=- < \
  <(curl --silent https://raw.githubusercontent.com/lsorber/brewfile/main/Brewfile)
  1. Configure:
cat << EOF >> ~/.zshrc
# Set up zsh plugins, direnv, pyenv, and starship.
source $(brew --prefix)/share/antigen/antigen.zsh
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-history-substring-search
antigen apply
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
eval "$(direnv hook zsh)"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
eval "$(starship init zsh)"

# Let starship handle virtual environment prompts.
export CONDA_CHANGEPS1=false
export VIRTUAL_ENV_DISABLE_PROMPT=1
EOF

# Set git's default branch name to main.
git config --global init.defaultBranch main

# Show hidden files in Finder.
defaults write com.apple.Finder AppleShowAllFiles true

# Use list view in Finder.
defaults write com.apple.Finder FXPreferredViewStyle Nlsv
  1. Set an integer scaling factor for your display(s) in System Preferences