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/master/install.sh)"
-
Check any issues with the install
$ brew doctor
-
Install ansible
$ brew install ansible
-
Clone repository to setup Mac with ansible
$ git clone https://github.com/yusekiya/mac_setup.git ~/.provisioning $ cd ~/.provisioning $ ansible-playbook -vv localhost.yml
$ $(brew --prefix)/opt/fzf/install --key-bindings --completion --no-update-rc
-
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