Mac Setup Memo
I've set up my Mac, and since I'll be doing it again soon, I'll leave a memo. Although it's mostly personal, I'll make it public.
System
First, open the App Store
and update the system.
Language & Region
Set only US English
.
Display
- Select
Scaled
inResolution
and set it to the maximum (or smaller if you often connect to an external display). - Set
Night Shift
toSunset to Sunrise
.
Trackpad
Check Tap to click
.
Keyboard
- Check
Use F1, F2...
. - In
modifier keys
, setCaps Lock
toControl
. - You can also use Karabiner to do this.
- Uncheck
Shortcuts → Input Sources
to releaseCtrl+Space
. - Set key repeat using the command. It will take effect after logging out.
- Uncheck
$ defaults write -g KeyRepeat -int 2
$ defaults write -g InitialKeyRepeat -int 15
Text
Uncheck the following:
- Correct spelling automatically
- Capitalize words automatically
- Add period with double-space
- Use smart quotes and dashes
Dock
- Make the size smaller.
- Move the position to the right.
- Remove unnecessary default icons.
Taskbar
- Right-click the power icon and select
Show Percentage
.
Applications
Browser
Use Safari and install Chrome. You can also install Firefox if needed.
Input/Output
Install Google Japanese input. Then, in Show keyboard settings
, only keep the following:
- U.S.
- Hiragana (Google)
Keyboard
Install Karabiner Elements and assign the left and right command keys to switch. Refer to the following article for details:
brew
Install brew to install applications. Refer to the official website:
zsh
$ brew install zsh
$ sudo sh -c "echo $(which zsh) >> /etc/shells"
$ chsh -s $(which zsh)
Install prezto. Refer to the following:
Add convenient commands:
$ brew install autojump
$ brew install peco
Add the following to ~/.zshrc
:
setopt auto_cd
function chpwd() { ls }
[[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh
function peco-history-selection() {
BUFFER=`history -n 1 | tail -r | awk '!a[$0]++' | peco`
CURSOR=$#BUFFER
zle reset-prompt
}
zle -N peco-history-selection
bindkey '^R' peco-history-selection
ref:
Terminal-related
Terminal
- In
Preferences
->Profiles
->Shell
, setWhen the shell exits
toClose the window
.
iTerm2
$ brew cask install iterm2
- In
iTerm2 -> Preferences -> Profiles
, set the following:- Window
- Transparency: Middle
- Style: Full-Width Top of Screen
- Colors
- Set
Color Presets...
to Pastel (the default is a black background with blue directories)
- Set
- Keys
- Check
Hotkey window
and uncheckAnimate showing and hiding
- Check
- Window
- Add iTerm to
Setting
->Users & Groups
->Login Items
Finder
- Show hidden files:
$ defaults write com.apple.finder AppleShowAllFiles TRUE
- Add
/tmp
to favorites - Remove unnecessary items from favorites
Git
Only set global settings:
$ git config --global user.name "Hoge hoge"
$ git config --global user.email [email protected]
Other Applications
Install the following applications. Settings are omitted:
- Xcode: https://itunes.apple.com/jp/app/xcode/id497799835
- Clipy: https://clipy-app.com/
- Sequel Pro: https://sequelpro.com/
- Dropbox Client: https://www.dropbox.com/ja/install
- Postman: https://www.getpostman.com/apps
- Install as an app, not a Chrome extension
- Docker for Mac: https://store.docker.com/editions/community/docker-ce-desktop-mac
- Add to Startup Items
- WaveBox: https://wavebox.io/
- (Integrated into WaveBox)
Slack Client: https://slack.com/intl/ja-jp/downloads/osx
- (Integrated into WaveBox)
- TextMate: https://macromates.com/
- (Changed due to slow startup)
Brackets: https://brackets.io/
- (Changed due to slow startup)
- Google Cloud SDK: https://cloud.google.com/sdk/downloads?hl=ja#interactive
- JetBrains Toolbox: https://www.jetbrains.com/toolbox/
- SourceTree: https://www.sourcetreeapp.com/
- BackgroundMusic: https://github.com/kyleneideck/BackgroundMusic
- Android Studio: https://developer.android.com/studio/