Install Xcode from app store. An apple ID is necessary to download Xcode. One needs to start Xcode once to accept a license agreement.
$ xcode-select --install
Homebrew is a package manager for Mac.
-
Install Homebrew with
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
Check any issues with the install
## Modify PATH according to CPU architecture of your Mac $ export PATH="/opt/homebrew/bin:$PATH" $ brew doctor
-
Install ansible
$ brew install ansible
-
Clone repository and set up Mac with ansible
$ git clone https://github.com/yusekiya/mac_setup.git ~/.provisioning $ cd ~/.provisioning $ ansible-playbook -vv localhost.yml
$ chsh -s $(brew --prefix)/bin/zsh
$ $(brew --prefix fzf)/install --key-bindings --completion --no-update-rc
Install sheldon with cargo
:
- Install Rust
cargo install sheldon
Add the following lines to ~/.zsh.site/defer-after-compinit.zsh
if (( $+commands[zoxide] )); then
eval "$(zoxide init --cmd c zsh)"
fi
-
Apply iTerm2 theme
-
See README in the repository.
-
-
Add shortcut key
Key Combination Action Ctrl-Tab Next Tab Ctrl-Shift-Tab Previous Tab -
Install shell integration (> ver3.0)
iTerm2 > Install Shell Integration
-
Create profile for remote host
- Open profile setting with
iTerm2 > Preference > Profiles
. - Create new profilw by duplicating Default profile with keyboard shortcut
command-=
. - Change profile name to "Remote" in General tab.
- Change tab color in Colors tab.
- Add rule for automatic profile switching in Advanced tab.
- Open profile setting with
-
Enable builtin
Settings Sync
Sign in with GitHub account
-
Run the
Shell Command: Install 'code' command in PATH