//Requirements:
//Sublime text 2 or 3 installed in your system within Applications folder
//Setup:
In order to launch sublime from command line you only need to create a symlink /usr/local/bin/subl point to sublime app,
to do so run the following in the command line:
//Run to use Sublime Text 3:
\!h $ ln -sv "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
//Test it out:
\!h $ subl test.rb
it should open new file test.rb sublime text