5
7

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.

macbook pro でのまっさらからの brew install 記録

Last updated at Posted at 2018-12-07

こんにちは。二日連続で Advent Calendar 参加を決めたことに後悔している小泉です。私たちは保険会社のスタートアップとして、テクノロジーで保険を身近にそして手軽に入れる存在にしたいという思いから会社を立ち上げました。尖った技術で尖った保険商品を作ってみたいと思われる方、ぜひオフィスに遊びに来てください! https://www.wantedly.com/companies/justincase

要旨

Mac を新調したのはつい二日前。今後クリーンインストールすることもあろうかと思うので、ここに業務に必要なアプリのbrew経由でのインストールメモを残すこととした。

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

# coding environment
brew install git
# for git completion
cat <<\EOF >> .bashrc
source /usr/local/etc/bash_completion.d/git-prompt.sh
source /usr/local/etc/bash_completion.d/git-completion.bash
GIT_PS1_SHOWDIRTYSTATE=true
export PS1='\[\033[37m\][\[\033[36m\]\u\[\033[37m\]@ \[\033[32m\]\W\[\033[37m\]]\[\033[31m\]$(__git_ps1)\[\033[00m\]\n\$ '
EOF

brew cask install visual-studio-code
brew cask install sourcetree
brew install docker
brew cask install docker
brew cask install postman

# language or IDE
# `brew install r` fails installing tidyverse. Need to use brew cask
brew cask install r
brew cask install rstudio

# Xcode install from Apple store
sudo xcodebuild -license


# python with pyenv
brew install pyenv
cat <<\EOF >> .bashrc
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
EOF

# for Mojave
# sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
pyenv install 3.7.0
pip install mypy
pip install flake8
pip install pandas

# node
brew install nvm
cat <<\EOF >> .bashrc
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

EOF

# communication
brew cask install slack

# google tools
brew cask install google-chrome
brew cask install google-drive-file-stream

# browser
brew cask install firefox

# command-lines
brew install awscli
# echo 'export PATH=~/.local/bin:$PATH' >> .bashrc
brew install jq
brew install wget
brew install curl

# deprecated
# brew cask install remote-desktop-connection
brew tap homebrew/cask-versions
brew cask install microsoft-remote-desktop-beta

# others
cat <<\EOF >> .vimrc

syntax on
set autoindent
set expandtab
set tabstop=4
set shiftwidth=4
set cursorline
set number

set encoding=utf-8
set fileencodings=iso-2022-jp,euc-jp,sjis,utf-8
set fileformats=unix,dos,mac

EOF
5
7
1

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
5
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?