Skip to content

Instantly share code, notes, and snippets.

@umihico
Last active May 6, 2019 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save umihico/f2b09f572713549ca5746d945bce8646 to your computer and use it in GitHub Desktop.
Save umihico/f2b09f572713549ca5746d945bce8646 to your computer and use it in GitHub Desktop.
my macbook setup procedures
export PYENV_ROOT=/usr/local/var/pyenv
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
source ~/.bashrc
alias gs='git status'

my macbook setup procedures

Keyboard Shortcuts

  • ⌃⌘M Zoom
  • Turn on full keyboard access for "All controls"

Installs

  1. atom
  2. Google inputs
  3. sVim
  4. phpStorm
  5. Docker

CLI things

  1. basics
  • xcode xcode-select --install and xcode-select --print-path
  • homebrew run below and brew doctor
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • wget brew install wget and wget -h
  1. ssh environment
  • mkdir -p ~/.ssh
  • copy ~/.ssh/id_rsa
  • chmod 0600 ~/.ssh/id_rsa
  • ssh -T git@github.com
  • ssh -T git@bitbucket.org
  1. git environment
  • git config --global --unset user.email
  • git config --global --unset user.name
  • git config --global --add user.email umihico@users.noreply.github.com
  • git config --global --add user.name umihico
  1. python
  • pyenv brew install pyenv and run below, then pyenv --version
cat << 'EOS' >> ~/.bash_profile
export PYENV_ROOT=/usr/local/var/pyenv
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi

EOS
source ~/.bash_profile
  • pyenv install 3.7.2 and pyenv global 3.7.2, then python --version
  • pip install --upgrade pip
  • pip install virtualenv
  1. php
  • brew install limbcrypt
  • brew install libxml2
  • curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew
  • chmod +x phpbrew
  • mv phpbrew /usr/local/bin/phpbrew
  • phpbrew init
  • echo "[[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc" >> ~/.bashrc
  • source ~/.phpbrew/bashrc
  • CPPFLAGS+=' -DU_USING_ICU_NAMESPACE=1' CXXFLAGS='-std=c++11 -stdlib=libc++' phpbrew install 7.3.2 +default +mysql +intl +bz2=/usr/local/Cellar/bzip2/1.0.6_1 +zlib=/usr/local/Cellar/zlib/1.2.11
  • CPPFLAGS+=' -DU_USING_ICU_NAMESPACE=1' CXXFLAGS='-std=c++11 -stdlib=libc++' phpbrew install 5.6.36 +default +mysql +intl +bz2=/usr/local/Cellar/bzip2/1.0.6_1 +zlib=/usr/local/Cellar/zlib/1.2.11
  • phpbrew switch 7.3.2
  • brew install composer
  1. MySQL
  • brew install mysql
unmapAll
map "r" reloadTab
map "n" createHint
map "t" createForegroundHint
map "s" createTabbedHint
map "c" goBack
map "i" goForward
map "y" newTab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment