階層表示 参考
不可視ファイルを表示
defaults write com.apple.finder AppleShowAllFiles true
フォルダを英語名に 参考
cd /System/Library/CoreServices/SystemFolderLocalizations/ja.lproj
sudo mv SystemFolderLocalizations.strings SystemFolderLocalizations.strings.back
sudo cp ../en.lproj/SystemFolderLocalizations.strings .
killall Finder
xcode-select --install
.bashrcや.zshrcに追記
# brew
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/sbin:$PATH
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
#!/bin/sh
brew update
brew upgrade
brew tap homebrew/science || true
brew tap homebrew/dupes || true
brew tap caskroom/cask || true
brew tap caskroom/versions || true
brew install zsh
brew install git
brew install mercurial
brew install wget
brew install tree
brew install rename
brew install freetype
brew install emacs --japanese --cocoa --srgb --with-gnutls -v
brew install pyenv-virtualenv
brew install plenv perl-build
brew install rbenv ruby-build
brew install gcc
brew install opencv --with-python3
brew cask install alfred
brew cask cleanup
brew cleanup
brew linkapps
# 例
$ pyenv install -l
$ pyenv install 3.5.10
$ pyenv global 3.5.10
.bashrcや.zshrcに追記
# python
export PYENV_ROOT="${HOME}/.pyenv"
if [ -d "${PYENV_ROOT}" ]; then
export PATH=${PYENV_ROOT}/bin:$PATH
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
fi
# ruby
export RBENV_ROOT="${HOME}/.rbenv"
if [ -d "${RBENV_ROOT}" ]; then
export PATH=${RBENV_ROOT}/bin:$PATH
eval "$(rbenv init - zsh)"
fi
# perl
export PLENV_ROOT="${HOME}/.plenv"
if [ -d "${PLENV_ROOT}" ]; then
export PATH=${PLENV_ROOT}/bin:$PATH
eval "$(plenv init - zsh)"
fi
# python2系, brew install pythonの場合
echo /usr/local/opt/opencv3/lib/python2.7/site-packages > /usr/local/lib/python2.7/site-packages/opencv3.pth
# python2系, virtualenvの場合
echo /usr/local/opt/opencv3/lib/python2.7/site-packages > $(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")/opencv3.pth
# python3系, brew install python3の場合
echo /usr/local/opt/opencv3/lib/python3.5/site-packages > /usr/local/lib/python3.5/site-packages/opencv3.pth
# python3系, virtualenvの場合
echo /usr/local/opt/opencv3/lib/python3.5/site-packages > $(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")/opencv3.pth