Reformatting of a new computer
Go to App Store, download Xcode; Install Dev Tools
Navigate to https://brew.sh/
Run /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
to install homebrew (double check since installation instructions may have changed)
Navigate to https://rvm.io/
Run \curl -sSL https://get.rvm.io | bash -s stable
to install rvm
Run brew install git
Navigate to https://help.github.com/articles/connecting-to-github-with-ssh/, then follow instructions.
Navigate to https://www.ruby-lang.org
Check which are the latest two stable rubies
Run rvm install 2.3.4
Run rvm use 2.3.4 --default
Run brew install postgres
Follow the post-installation instructions, initdb and launchctl, and start the PostgreSQL server as a daemon.
If you are updating postgres, you can also access instructions via brew info postgresql
.
Note: you may need to alter the path to the psql binary to use the Cellar version instead of the native one. For example, add this to the end of your .bash_profile or .zshrc:
# pwd #=> anywhere
$ echo "$PATH=/usr/local/Cellar/postgresql/9.X.X/bin:$PATH" >> ~/.bash_profile
If installing sublime, create symbolic links so that you can launch from CLI:
Sublime 2:
ln -sv "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
Sublime 3:
ln -sv "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
- [https://coderwall.com/p/h6yfda/use-and-to-jump-forwards-backwards-words-in-iterm-2-on-os-x | use forward and backwards jumps in iTerm2]