https://github.com/horothesun/macos-setup
macOS Homebrew-based setup.
https://github.com/horothesun/macos-setup
bootstrap bootstrapping homebrew install jenv macos mergify nvm pass pyenv rbenv renovate renovate-enabled setup setup-macos tools tools-installer
Last synced: 5 months ago
JSON representation
macOS Homebrew-based setup.
- Host: GitHub
- URL: https://github.com/horothesun/macos-setup
- Owner: horothesun
- Created: 2021-11-13T23:42:00.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-04-18T11:10:05.000Z (6 months ago)
- Last Synced: 2025-04-19T00:39:49.296Z (6 months ago)
- Topics: bootstrap, bootstrapping, homebrew, install, jenv, macos, mergify, nvm, pass, pyenv, rbenv, renovate, renovate-enabled, setup, setup-macos, tools, tools-installer
- Language: Shell
- Homepage:
- Size: 1.58 MB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: NewSpaceWithTerminalOnDisplay1.workflow/Contents/Info.plist
Awesome Lists containing this project
README
# macOS setup
[](https://github.com/horothesun/macos-setup/actions/workflows/ci.yml)
[](https://renovatebot.com)
[](https://mergify.com)macOS Homebrew-based setup.
## Factory reset
Apple support guide: [link](https://support.apple.com/en-gb/HT201065).
## Setup
- System Preferences
- customise `Sharing -> Computer Name`,
- `Apple ID` login, etc.
- restart
- App Store: login
- Homebrew: install ([guide](https://docs.brew.sh/Installation)) and restart terminal app
- OhMyZSH: install ([guide](https://github.com/ohmyzsh/ohmyzsh#basic-installation)) and restart terminal app
- official JetBrains Mono font ([home](https://www.jetbrains.com/lp/mono/))
- run the main installation script, then launch [each installed cask](casks) to configure them```bash
./install.sh
```- GitHub SSH key: generate and set ([guide](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent))
- `git`: set global configuration, user name and email ([guide](https://stackoverflow.com/a/26368148))```bash
./git_global_configs.sh
git config --global user.name
git config --global user.email
```- `pass`: run the install script then set your GPG keys and private passwords git repo (follow private notes)
```bash
./pass_install.sh
```- environment managers
```bash
./jenv_install.sh# Run the following to make sure JAVA_HOME gets set.
# N.B.: JDK paths must be added to jEnv first!
jenv enable-plugin export
``````bash
./rbenv_install.sh
``````bash
./nvm_install.sh
``````bash
./pyenv_install.sh
```- dot-files ([repo](https://github.com/horothesun/dotfiles))
- Neovim: install the `vim-plug` plugin manager ([guide](https://github.com/junegunn/vim-plug#neovim)),
then install `nvim` plugins and `CoC` extensions with```bash
nvim -c "PlugInstall|qa" ; nvim
```- Ruby gems: run `gem update` after initialising `rbenv` and setting the global Ruby version to the desired default one.
- `uni` - Unicode query CLI tool ([repo](https://github.com/arp242/uni))```bash
./uni_install.sh
```- IntelliJ IDEA: `Settings -> Settings Sync` with your email.
- `alacritty` - new instance shortcut:
- setup the Apple Automator workflow with `cp -R NewAlacrittyInstance.workflow ~/Library/Services/`,
then launch `System Preferences -> Keyboard -> Shortcuts` and set the
`Services | General -> NewAlacrittyInstance` shortcut to `⌥⌘/`.
N.B.: restart the system or each individual app to enable the shortcut on them (`killall Finder` included).
- after `stow`-ing Alacritty's dotfile/scripts, run
`ln -s ~/bin/alacritty_new_window_same_dir.sh /usr/local/bin/alacritty_new_window_same_dir.sh`## TODOs
- New space with terminal on display 1:
setup base script with `cp create_new_space_with_terminal.scpt ~/bin/`, then
setup Apple Automator workflow with
`cp -R NewSpaceWithTerminalOnDisplay1.workflow ~/Library/Services/`, then
launch `System Preferences -> Keyboard -> Shortcuts` and set the
`Services | General -> NewSpaceWithTerminalOnDisplay1` shortcut to `⌥⌘1`.
N.B.: restart the system or each individual app to enable the shortcut on them (`killall Finder` included).- New space with terminal on display 2:
setup base script with `cp create_new_space_with_terminal.scpt ~/bin/`, then
setup Apple Automator workflow with
`cp -R NewSpaceWithTerminalOnDisplay2.workflow ~/Library/Services/`, then
launch `System Preferences -> Keyboard -> Shortcuts` and set the
`Services | General -> NewSpaceWithTerminalOnDisplay2` shortcut to `⌥⌘2`.
N.B.: restart the system or each individual app to enable the shortcut on them (`killall Finder` included).