Skip to content

horothesun/macos-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

macOS setup

CI Renovate enabled Mergify enabled

macOS Homebrew-based setup.

Factory reset

Apple support guide: link.

Setup

  • System Preferences
    • customise Sharing -> Computer Name,
    • Apple ID login, etc.
  • restart
  • App Store: login
  • Homebrew: install (guide) and restart terminal app
  • OhMyZSH: install (guide) and restart terminal app
  • official JetBrains Mono font (home)
  • run the main installation script, then launch each installed cask to configure them
./install.sh
  • GitHub SSH key: generate and set (guide)
  • git: set global configuration, user name and email (guide)
./git_global_configs.sh
git config --global user.name <GITHUB_USER_NAME>
git config --global user.email <GITHUB_USER_EMAIL>
  • pass: run the install script then set your GPG keys and private passwords git repo (follow private notes)
./pass_install.sh
  • environment managers
./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
./rbenv_install.sh
./nvm_install.sh
./pyenv_install.sh
  • dot-files (repo)
  • Neovim: install the vim-plug plugin manager (guide), then install nvim plugins and CoC extensions with
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)
./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).