Skip to content

Latest commit

 

History

History
84 lines (68 loc) · 1.63 KB

OSX.md

File metadata and controls

84 lines (68 loc) · 1.63 KB

MacOS

# If were to install in custom dir. But this can cause issues
mkdir homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew && export PATH="$HOME/homebrew/bin:$PATH"

Install command line developer tools

sudo xcode-select --install

Setup system settings

osx_init

Create symlink to icloud:

ln -s ~/Library/Mobile\ Documents/com\~apple\~CloudDocs ~/cloud

Install brew "packages" from .Brewfile.lock.json

brew_install

Karabiner:

cd ~/.config/karabiner && npx tsx config.ts

Spacebar:

# Spacebar doesn't have apple silicon built. Need to install rosetta
softwareupdate --install-rosetta

Yabai:

# Disable SIP (in recovery mode)
csrutil disable

# Enable ARM64E ABI boot option (need reboot)
sudo nvram boot-args=-arm64e_preview_abi

yabai --start-service
skhd --start-service

# Load scripting edition (on login)
sudo yabai --load-sa

Sometimes desktop icons will glitch. To fix:

killall Finder

Change default shell to brew's installation of zsh:

echo /opt/homebrew/bin/zsh | sudo tee -a /etc/shells
chsh -s /opt/homebrew/bin/zsh

Install custom builds of fzf and yazi:

# Inside fzf project
FZF_VERSION=0 make install
cp <binary> ~/bin

# Inside yazi project
cargo build --release
cp <binary> ~/bin

Create symlink to vscode config:

rm -rf ~/Library/Application\ Support/Code/User
# Or if using cursor
# rm -rf ~/Library/Application\ Support/Cursor/User
cd ~/Library/Application\ Support/Code
# cd ~/Library/Application\ Support/Cursor
ln -s ~/.config/vscode/User User