Ruby development environment setup on Mac OSX El Capitan


(copy and pasting commands is OK)

  • Ensure you are working from an admin level system profile
  • Download and Install atom
  • Welcome to your new home, the terminal, update ~/.bash_profile so you can see things properly in your terminal (color, directories and hidden files)
  echo 'alias ls="ls -FGaw"' >> ~/.bash_profile
  • Install Xcode
  • Install Xcode Command Line Tools
  xcode-select --install
  • Verify Xcode
  xcode-select -p
  # looking for
  # /Applications/
  /usr/bin/ruby -e "$(curl -fsSL"
  brew -v
  • Install git
  brew install git
  git -v
  brew install rbenv
  rbenv init
  rbenv install -l
  rbenv --version
  • Use rbenv to install ruby
  rbenv install 2.3
  ruby -v
  • Set global ruby version
  mkdir ~/.rbenv
  echo '2.3' >> ~/.rbenv/version
  • Install bundler
  gem install bundler
  gem list bundler


  • pwd print the location of the current working directory
  • cd ../ change directory and move up one level
  • cd ~/ cd directory from current to user's home directory
  • mkdir ~/unicorn_hunting create a directory in the home directory called 'unicorn hunting'
  • ls list the contents of the current directory
  • ls -al list all the contents of current directory in a list
  • touch unicorn.rb create file called 'unicorn' with the '.rb' ruby file extension
  • ruby unicorn.rb run the contents of the unicorn.rb file as ruby
  • cmd k clear contents of current terminal window

Useful Mac OSX details

  • Enable finder to show all hidden files
  defaults write AppleShowAllFiles YES
  killall Finder
I continually seek new software engineering contracts and product collaboration opportunities so please, send email to