Skip to content

Instantly share code, notes, and snippets.

@atsuya046
Last active March 23, 2018 02:38
Show Gist options
  • Save atsuya046/0b7357aca0711b0264f5fc1f990164cb to your computer and use it in GitHub Desktop.
Save atsuya046/0b7357aca0711b0264f5fc1f990164cb to your computer and use it in GitHub Desktop.
Setup Mac

Install Homebrew

$ sudo xcodebuild -license

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Java/Kotlin/Scala and more

$ curl -s "https://get.sdkman.io" | bash

$ source "$HOME/.sdkman/bin/sdkman-init.sh"
$ sdk install java
$ sdk install kotlin
$ sdk install scala
$ sdk install ant
$ sdk install maven
$ sdk install gradle

Install Apps with Homebrew cask

$ brew cask install google-chrome
$ brew cask install android-studio
$ brew cask install intellij-idea
$ brew cask install iterm2
$ brew cask install google-japanese-ime

Setup github

$ cd ~/.ssh/
$ ssh-keygen -t rsa -C "myaccount@example.com"
$ pbcopy < hoge_rsa.pub
# add ssh key https://github.com/settings/keys

$ vi ~/.ssh/config
Host GitHub
    User git
    HostName github.com
    IdentityFile ~/.ssh/github/hoge_rsa
    TCPKeepAlive yes
    IdentitiesOnly yes
    
$ ssh -T git@github.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment