
Mac Setup Memo
I set up my Mac. As I'll likely do it again soon, I'm leaving a memo. While it's mostly personal and may not be very helpful, I'm publishing it anyway.
System
First, open App Store
and update the system
Language & Region
Set to US English
only
Display
- Choose Scaled under
Resolution
and set to maximum (if you often connect to a display, smaller might be fine) - Set
Night Shift
to Sunset to Sunrise
Trackpad
Check Tap to click
Keyboard
-
Check
Use F1, F2...
-
In
modifier keys
, setCaps Lock
toControl
-
Whether to do this with Karabiner is a matter of preference
- Uncheck Shortcuts → Input Sources (to free up Ctrl+Space)
- Set key repeat with command. Reflects after logout
$ 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
- Size: Make it smaller
- Position to right
- Remove unnecessary default icons
Taskbar
- Right-click the power icon,
Show Percentage
Applications
Browser
Install Chrome using Safari. Install Firefox if needed
Input/Output
Install Google Japanese Input. Then, in Show keyboard settings
, leave only these:
- U.S.
- Hiragana (Google)
Keyboard
Install Karabiner Elements and assign left and right command keys to switch. For details, refer to the article below
brew
To install apps, first install brew. Refer to the official site
zsh
$ brew install zsh
$ sudo sh -c "echo $(which zsh) >> /etc/shells"
$ chsh -s $(which zsh)
Install prezto. Refer to the following
Add useful 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
Preferences
->Profiles
->Shell
-> SetWhen the shell exits
toClose the window
iTerm2
$ brew cask install iterm2
- Adjust settings in
iTerm2 -> Preferences -> Profiles
- Window
- Transparency: Around the middle
- Style: Full-Width Top of Screen
- Colors
- Set Color Presets... to Pastel (default is blue directories on black background)
- Keys
- Hotkey window: check
A hotkey ...
- uncheck:
Animate showing and hiding
- Hotkey window: 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
Just global setting
$ git config --global user.name "Hoge hoge"
$ git config --global user.email [email protected]
Other applications
Install the following. Settings 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
- Also 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
- AndroidStudio: https://developer.android.com/studio/