ln -sv /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl

subl test.rb

git clone https://github.com/bitcoin/bitcoin.git
subl bitcoin/

Reference:

https://gist.github.com/martinbuberl/5823ed247d279d1a2d06