0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MacBookPro購入時の設定メモ2

Last updated at Posted at 2020-02-05

HomeBrew

公式サイトに記載されているスクリプトをターミナルに貼り付け実行。

caskを追加

   $ brew update
   $ brew tap caskroom/cask
   $ brew install caskroom/cask/brew-cask

Readline

   $ brew install liadline           #Rails consoleでの日本語入力用

Ruby関連1

   $ brew install rbenv
   $ brew install ruby-build

path

   $ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
   $ echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
   $ source ~/.bash_profile

Ruby関連2

   $ rbenv install 2.6.1
   $ rbenv global 2.6.1
   $ rbenv rehash
   $ gem install bundler -v 2.0.1            #heroku対応版を入れる

mysql

   $ brew install mysql

Rails

   $ mkdir ~/ruby
   $ cd ~/ruby
   $ gem install rails -v 5.1.6
   $ bundle install --path vendor/bundle 

git

   $ brew install git
   $ brew install tig
   $ git config --global user.name "Your Name"  
   $ git config --global user.email your.email@example.com  

git ssh

   $ mkdir ~/.ssh
   $ cd ~/.ssh
   $ ssh-keygen -t rsa            #全部enterでok
   $ pbcopy < ~/.ssh/id_rsa.pub
   #ブラウザ側でキーを登録する
   $ ssh -T git@bitbucket.org  

heroku

   $ brew tap heroku/brew && brew install heroku  
   $ heroku login --interactive  
   $ heroku keys:add               #login成功後にSSHキーを追加。

GUIアプリ

   $ brew cask install visual-studio-code
   $ brew cask install sourcetree
   $ brew cask install docker
   $ brew cask install virtualbox
   $ brew cask install vagrant
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?