Your comments

Based on the suggestion by Damazio above, for me it worked to put this in my .bash_profile:

alias edit='subl && sleep 0.1 && subl'
I'm on a fast MacBook Air so for me 0.1 seconds of sleep already do the trick... other users may have to increase the value.