Ruby development environment setup on Mac OSX El Capitan
THE FIRST STEPS, EXECUTE IN ORDER!!
(copy and pasting commands is OK)
- Ensure you are working from an admin level system profile
- Download and Install atom https://atom.io/
- Welcome to your new home, the terminal, update
~/.bash_profile
so you can see things properly in your terminal (color, directories and hidden files)
- Install Xcode Command Line Tools
- Install HomeBrew, aka Brew, http://brew.sh/
- Install rbenv, https://github.com/rbenv/rbenv
- Use rbenv to install ruby
BASIC UNIX
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
- Install and use sizeup (paid) for window maximizing and docking, http://www.irradiatedsoftware.com/sizeup/