Terminal Preferences

$ nano .profile

  • First line replaces current working directory
  • Second two export lines enable command line colors, and define colors for the ls
  • Finally, we alias ls to include a few flags by default. -G colorizes output, -h makes sizes human readable, and -F throws a / after a directory, * after an executable, and a @ after a symlink, making it easier to quickly identify things in directory listings
export PS1=" 🖥  $ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad

alias ls='ls -GFh'

Copy and paste this into your profile and save file


Postgres Installer


Homebrew installation helper

Install latest version of Homebrew

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


$ brew install wget
$ brew doctor
$ brew update


Node.js installation using Homebrew
Node.js is an open source, cross-platform runtime environment for developing server-side and networking applications. Node.js applications are written in JavaScript, and can be run within the Node.js runtime on OS X, Microsoft Windows, and Linux.

$ brew install node
$ brew upgrade node

Updating npm

Node.js comes with npm installed, however, npm gets updated more frequently than Node, so you’ll want to make sure it’s the latest version

$ npm install npm -g


RVM installation helper

Install latest version of RVM

$ \curl -sSL https://get.rvm.io | bash -s stable --auto-dotfiles

test installation

$ type rvm | head -n 1

should output rvm is a function

gem env will list the gem paths

should report the RVM-managed gem library paths

Install Ruby

$ rvm install 2.5.1

First install Bundler gem

gem install bundler

Update all gems

$ rvm rubygems current

RVM CLI usage

rvm info show information for current ruby

rvm list show currently installed versions

rvm reload reload RVM source itself (useful after changing RVM source)

rvm use setup current shell to use a specific ruby version

rvm --default when used with ruby selection, sets a default ruby for new shells

Update RVM

$ rvm get stable

Remove RVM

$ rvm implode --force

remove from the following locations

$ rm -rf /usr/local/rvm
$ sudo rm /etc/profile.d/rvm.sh
$ sudo rm /etc/rvmrc
$ sudo rm ~/.rvmrc

check the following files for RVM references

$ nano ~/.bashrc
$ nano ~/.bash_profile
$ nano ~/.profile
$ nano ~/.zshrc
$ nano ~/.zlogin

restart your terminal