{"id":17218229,"url":"https://github.com/korthout/mac","last_synced_at":"2026-05-16T13:03:00.992Z","repository":{"id":156183319,"uuid":"610427243","full_name":"korthout/mac","owner":"korthout","description":"dotfiles and package management for my mac","archived":false,"fork":false,"pushed_at":"2025-06-03T08:37:28.000Z","size":161,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-03T19:47:09.547Z","etag":null,"topics":["brewfile","dotfiles"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/korthout.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-03-06T18:51:21.000Z","updated_at":"2025-06-03T08:37:29.000Z","dependencies_parsed_at":"2024-01-28T17:46:13.751Z","dependency_job_id":"be9c87c9-2aaf-4381-a4e2-c52a31631db0","html_url":"https://github.com/korthout/mac","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/korthout/mac","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/korthout%2Fmac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/korthout%2Fmac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/korthout%2Fmac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/korthout%2Fmac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/korthout","download_url":"https://codeload.github.com/korthout/mac/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/korthout%2Fmac/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266052535,"owners_count":23869475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["brewfile","dotfiles"],"created_at":"2024-10-15T03:45:50.746Z","updated_at":"2026-05-16T13:02:55.970Z","avatar_url":"https://github.com/korthout.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mac\n\nThis repo contains the dotfiles and installed packages of my Mac.\nHomebrew is the main way to manage packages from this repo.\nAn overview of all installed packages can be found in `Brewfile` (the exact versions are specified in `Brewfile.lock.json`).\nOriginally, I looked into using Nix and nix-darwin to manage packages, but this was too cumbersome compared to Brew.\n\nThis repo should be used as a bare git repository to work on the `~` home folder without messing with git repos existing in sub folders.\n\n## Fresh install\n\nBefore you can use the rest of this repo, you'll need to install some things:\n\n### Install Command Line Tools\n\nIn order to use `git` we'll need the Command Line Tools.\n\n```sh\nxcode-select --install\n```\n\n### Bare repository clone and checkout\n\nTo start using this repo on a new machine, we need to run the following in a new shell.\nThis idea was taken from: https://www.atlassian.com/git/tutorials/dotfiles.\n\n```sh\ngit clone --bare https://github.com/korthout/mac.git $HOME/.cfg\nalias config='git --git-dir=$HOME/.cfg/ --work-tree=$HOME'\nmkdir -p .config-backup\nconfig checkout\nif [ $? = 0 ]; then\n  echo \"Checked out config.\";\n  else\n    echo \"Backing up pre-existing dot files.\";\n    config checkout 2\u003e\u00261 | egrep \"\\s+\\.\" | awk {'print $1'} | xargs -I{} mv {} .config-backup/{}\nfi;\nconfig checkout\nconfig config status.showUntrackedFiles no\n```\n\n### Install Homebrew\n\nYou can install Homebrew pretty in an unsafe way.\nIf you want to protect yourself more, first download the file, verify a checksum, and inspect the contents before executing it.\n\n```sh\n/bin/bash -c \"$(curl -fsSL \\\n https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"\n```\n\n### Install Rosetta\n\nYou may also need to install Rosetta on your machine to be able to use non-arm binaries.\n\n```sh\nsoftwareupdate --install-rosetta --agree-to-license\n```\n\n## Usage\n\nInstall and update packages\n\n```sh\nbrew bundle --verbose\nconfig commit -a -m 'Update packages'\nconfig push\n```\n\nDump newly installed packages into Brewfile\n\n```sh\nbrew bundle dump --force --describe\nconfig commit -a -m 'Add new package'\nconfig push\n```\n\n## Additional installations\n\nSome installations require manual effort.\n\n### VS Code Extensions\n\nDump extensions into a file\n\n```sh\ncode --list-extensions \u003e vscode-extensions.list\n```\n\nInstall extensions\n\n```sh\ncat vscode-extensions.list | xargs -L 1 code --install-extension\n```\n\n\u003e Source: https://stackoverflow.com/a/54467390\n\n### Stats config\n\nThese can be exported using:\n\n```sh\ndefaults read eu.exelban.Stats \u003e ~/configs/stats.json\n```\n\nAnd can be imported using:\n\n```sh\ndefaults import eu.exelban.Stats ~/configs/stats.json\n```\n\n### Rectangle config\n\nThe config can be imported and exported using the Rectangle Settings UI.\n\n- `configs/RectangleConfig.json`\n\n### iTerm config\n\nThe config can be imported and exported using the iTerm Settings UI.\n\n- Profile: `config/iterm2-profile.json`\n- Keymap: `config/iterm2.itermkeymap`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkorthout%2Fmac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkorthout%2Fmac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkorthout%2Fmac/lists"}