Skip to content

Instantly share code, notes, and snippets.

@LeZuse
Last active April 3, 2025 12:26
Show Gist options
  • Save LeZuse/94176bc8e4eecb58fa62 to your computer and use it in GitHub Desktop.
Save LeZuse/94176bc8e4eecb58fa62 to your computer and use it in GitHub Desktop.
macOS Machine Setup

Mac OS Dev Machine Setup

General

For latest settings refer to this comment

For previous settings check this Gist revisions

Remarks

  • always read and follow Homebrew formulae installation instructions
  • NEVER utilize prebundled binaries from Apple (ruby, python, postgres)
    • use virtual environments whenever possible (chruby, virtualenv, nvm, etc)

TODO

  • translate OS settings into defaults calls
  • save all dot files; see https://github.com/jansedivy/dotfiles
  • figure out how to backup a list of installed sw (for reference)
    • using Homebrew Cask?
    • Mac App store installs
@LeZuse
Copy link
Author

LeZuse commented Oct 24, 2023

MacOS Sonoma

@LeZuse
Copy link
Author

LeZuse commented Dec 16, 2024

Managing multiple git identities within .gitconfig file.

You can set this one up per-folder but I prefer mine to be set per wildcard of remote origin URL like so, example:
contents of my global ~/.gitconfig

[includeIf "hasconfig:remote.*.url:**github.com:*/*.git"]
	path = .gitconfig_personal

[includeIf "hasconfig:remote.*.url:**github.com:productboard/*.git"]
	path = .gitconfig_productboard

contents of ~/.gitconfig_productboard:

[user]
	email = [email protected]
	name = John Does
    signingKey = xxx

contents of ~/.gitconfig_personal

# ... you get the idea

@LeZuse
Copy link
Author

LeZuse commented Apr 3, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment