Ctrl+P
detect first line of file, if match #compdef or #autoload, mark it as shellscript
#compdef
#autoload
shellscript