Skip to content

Latest commit

 

History

History
101 lines (77 loc) · 2.31 KB

README_MACOS.md

File metadata and controls

101 lines (77 loc) · 2.31 KB

macOS 🍎

Install dotfiles

git clone --recursive https://github.com/fredrikaverpil/dotfiles.git ~/.dotfiles
cd .dotfiles && ./install -vv

Note

See README_GIT.md for details on setting up git.

Install tooling

Install Xcode commandline tools:

xcode-select --install
sudo xcodebuild -license accept

Install Homebrew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
🎶 Expand for x86 support.

When on an arm64 device, homebrew is installed in /opt/homebrew/bin/brew. You can install an x64 version in /usr/local/bin/brew. See installers/homebrew.sh for more info.

Install apps

Note that per-project tooling (such as languages) are managed with pkgx, not with homebrew.

brew bundle --file=_macos/Brewfile
brew bundle --file=_macos/Brewfile_mas  # requires being logged into the App Store
installers/neovim-distros.sh
installers/neovim-nightly.sh

# run LazyVim
NVIM_APPNAME=LazyVim nvim

# or run custom nvim config
nvim

OS configuration

Don't create .DS_Store files on network or USB volumes:

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true

Hostname

installers/set_hostname.sh $DESIRED_HOSTNAME

System settings

  • Open up 9 Desktops in Mission control.
  • Disable/enable in Keyboard → Keyboard shortcuts → Mission Control:
    • Mission control
      • Mission Control
      • Application windows
      • Move left a space
      • Move right a space
      • Switch to Desktop 1
      • ...
      • Switch to Desktop 9
  • Mission control related in Desktop & Dock → Mission Control:
    • Automatically rearrange Spaces based on most recent use.
    • Shortcuts: Mission control keyboard shortcut
    • Hot corners:
      • Upper left: Mission Control
      • Upper right: Desktop
      • Lower left: Lock screen
      • Lower right: Quick note
  • Accessibility:
    • Display:
      • Reduce motion.
  • Keyboard
    • Key repeat rate: fast
    • Delay until repeat: short
    • Dictation:
      • Shortcut: Press (mic symbol)