compdef _switchto switchto
-if [[ $( has bbedit ) == 'yes' ]]; then
+if [[ $( has subl ) == 'yes' ]]; then
+ export GUI_EDITOR="subl -w"
+elif [[ $( has bbedit ) == 'yes' ]]; then
export GUI_EDITOR="bbedit -w"
elif [[ $( has mate_wait ) == 'yes' ]]; then
export GUI_EDITOR="mate_wait"