To open files and folders from your command-line you need to add Sublime Text 2 to your path.
sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/bin/subl
And then...
subl ~/mysitedir
To open files and folders from your command-line you need to add Sublime Text 2 to your path.
sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/bin/subl
And then...
subl ~/mysitedir