1- Check if Sublime is already installed using the following command
/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl
2- Check if /usr/local/bin
is in your PATH using echo $PATH
This should output something like /usr/local/bin:/usr/bin:/bin:/usr/sbin