This article describes effective procedures for JSer / Rubyists to setup High Sierra of macOS.
๐ฃ Install some applications
For development
- Atom : Editor for programmer
- Dash for macOS : API Documentation Browser
- Docker for mac : Installer for docker tools
- Insomnia : HTTP and GraphQL Client
- IntelliJ IDEA the Java IDE : Capable and Ergonomic IDE for a lot of languages
- iTerm : Modern and functional terminal app
- SourceTree : Free Git Client
- Visual Studio Code : Editor for programmer
- XCode : IDE for Swift and Objective-C
For productivity
- AppCleaner : Uninstaller for unwanted apps
- BitBar : Put anything in your Mac OS X menu bar
- Chrome : Effective browser
- Evernote : Simplify cloud text editor
- Franz : your messaging app for many apps
- Google Japanese Input : IME for Japanese
- Magnet : Window manager for Mac
- Station : Smart workstation for busy people
- TripMode : Reduce your mobile data consumption
๐ป Homebrew
Before any installation, you should approve Xcode license agreement by the following command:
sudo xcodebuild -license |
You should execute the following command to install Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
If you are asked about Xcode Command line tool while installing with Homebrew, please install it.
๐ Oh-my-zsh
If you want to use a coftable Zsh customized by the community, letโs install
robbyrussell/oh-my-zsh.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" |
๐ฎ Git
You should install Git command line tool:
brew install git |
After installing Git, we recommend to set global .gitignore
:
# install generator for .gitignore |
You should set basic passwords to skip filling password by vi ~/.netrc
:
machine github.com |
In addition, please add a alias git push-f
to vi ~/.gitconfig
[alias] |
๐ณ autojump
If you want to fill a path more quickly,
wting/autojump is one of the greatest solutions.
brew install autojump |
After installing, set the following setting by vi ~/.zshrc
# autojump |
After the setting, execute the following command to reflect the setting:
source ~/.zshrc |
๐ผ Font Ricty
Ricty is a fonts for programming, if you want to try it, please set the following command:
# Installing Ricty |
๐ rbenv
To avoid installing unnecessary documents, add the following setting vim ~/.gemrc
:
install: --no-document |
After the above setting, letโs install the following rbenv and Ruby-build:
# installing rbenv / ruby-build |
Edit the following setting by vi ~/.zshrc
:
# rbenv |
The setting is reflected by the following command:
source ~/.zshrc |
Install Ruby by rbenv:
# show list of ruby versions which is able to install |
๐ PostgreSQL
Install PostgreSQL:
brew install postgresql |
๐ Docker (Optional)
Please set alias to vi .zshrc
:
# Docker |
After setting, reflect the upper settings:
source ~/.zshrc |
๐ธ Node Version Manager
Please refer to nvm: Node Version Manager and install it.
๐ฝ Optional
Java
Download JDK from Java SE - Downloads / Oracle and install it.
After install JDK, you should install Maven & gradle too.
brew install maven32 |
After that, please write the bellow code in .zshrc
:
# Java |
.
Google Cloud Platform SDK
Please refer to Cloud SDK | Cloud SDK and install it.
Heroku CLI
brew install heroku/brew/heroku |
Chromedriver
If you use Chromedriver for selenium test or etc, please execute the follows:
brew tap homebrew/cask |
IntelliJ
Please refer to the following articles and configure it.
- IntelliJ Idea: Importing Gradle project - getting JAVA_HOME not defined yet
- How to increase IDE memory limit in IntelliJ IDEA on Mac?
Shortcut for Ruby dev
Please write the bellow code in .zshrc
:
# nodebrew(Node.js) |
Shortcut for Source Tree
ln -s /Applications/SourceTree.app/Contents/Resources/stree /usr/local/bin/ |
Change function keys
Application > System Preferences > Keybord > Use all F1, F2, etc... |
Change shortcut to change active window
Application > System Preferences > Keybord > Shortcut > Keybord > Move focus next window |
Change shortcut for select the previous source
Application > System Preferences > Keybord > Shortcut > Input Source > Select the previous source > command + space |
Change shortcut for show spotlight search
Application > System Preferences > Keybord > Shortcut > Spotlight > Show spotlight search > control + space |
Change computer name
Application > System Preferences > Sharing > Computer Name |
Change cursor speed
Application > System Preferences > Mouse > Tracking Speed |
๐ References
๐ฅ Recommended VPS Service
VULTR provides high performance cloud compute environment for you.
Vultr has 15 data-centers strategically placed around the globe, you can use a VPS with 512 MB memory for just $ 2.5 / month ($ 0.004 / hour).
In addition, Vultr is up to 4 times faster than the competition, so please check it => Check Benchmark Results!!