Skip to content

Latest commit

 

History

History
119 lines (79 loc) · 3.91 KB

README.md

File metadata and controls

119 lines (79 loc) · 3.91 KB

dotfiles

Another dotfiles repo.

Meta: lint this file via docker run --rm -v $PWD:/workdir ghcr.io/igorshubovych/markdownlint-cli:latest "*.md" --fix

New Mac Setup

TODO: automate where sensible 🤖

Install Fonts

  • Essential Pragmata Pro
  • IBM Plex Sans
  • iA Writer Mono & Quattro
  • Source Code Pro
    • Sauce Code variant preferred for Starship
    • brew tap homebrew/cask-fonts && brew install font-sauce-code-pro-nerd-font
    • Assign font in iTerm and IntelliJ

Enable QuickLook Plugins

for plugin in ~/Library/QuickLook/*qlgenerator; do
  echo enabling $plugin;
  xattr -d -r com.apple.quarantine ${plugin}
done
qlmanage -r

Install Utilities

  • Mac Mouse Fix (github)
    • Best for non-Apple mice, like MX Master 3.
    • Enable Smooth Scrolling
  • UninstallPKG.app to be able to remove cruft from installers using .pkg and admin privs.
  • TimeMachineEditor to schedule TM backups overnight.
  • GMailinator - GMail shortcuts for Mail.app (requires Xcode)

Preferences

# Finder: show all hidden files
defaults write com.apple.Finder AppleShowAllFiles true
killall Finder

## Make cmd-tab app switcher appear on all monitors:
defaults write com.apple.Dock appswitcher-all-displays -bool true
killall Dock

# Screenshots to save to ~/Desktop/Screenshots
defaults write  com.apple.screencapture location ~/Desktop/Screenshots

Map ⌘ + ←Delete to backward-kill-line in iTerm2 + zsh

In iTerm2 have to ⌘ + ←Delete (⌘ + backspace) to send hex codes 0x18 0x7f. Then ensure bindkey ... backward-kill-line is in .zshrc.

Detailed S.O. replies: 1, 2.

Enable TouchID Auth for sudo commands in iTerm2 (source)

  1. Add auth sufficient pam_tid.so to the top of /etc/pam.d/sudo
  2. Go to iTerm2 Preferences (⌘,). In Advanced(⚙) Tab, search for "Allow sessions to survive logging out and back in." and set the value to No.
  3. Restart iTerm2 (maybe?)

Rectangle.app Prefs

Launch Rectangle, open the Preferences pane, and import the prefs file (Rectangle.json)

Firefox

Disable autoplay of YouTube Channel Trailers

  • go to about:config
  • media.autoplay.default = 5
  • media.autoplay.blocking_policy = 2

source

userChrome.css

Enable in new Firefox:

  • Open about:config.
  • Set toolkit.legacyUserProfileCustomizations.stylesheets to true.
  • Open about:support and search for "Profile Folder". Copy the path.
  • Quit Firefox and symlink the chrome folder:
    • ln -s $HOME/src/dotfiles/Firefox/chrome "$HOME/Library/Application Support/Firefox/Profiles/u6rri5xi.default-release/"
  • Start Firefox.

SSH Setup

From 1Password, copy memex_id_ed25519 and id_ed25519 to ~/.ssh/.

chmod 0600 ~/.ssh/*id*

Resources

Single Site Browsers (SSB)

BZG provides:

  • Unite for WebKit-based SSB
  • Coherence X

launchd

Website explaining launchd, LaunchAgents, and LaunchDaemons: https://www.launchd.info

LaunchControl

LaunchControl is a fully-featured launchd GUI allowing you to create, manage and debug system- and user services on your Mac

Third-Party Sites