Hi All,
This is my first post as well as my first Sublime plugin, so please be gentle
This plugin is pretty straightforward - it sets a fileās syntax based on a shebang line during file load and save (i.e. ā#!/usr/bin/env pythonā to Python). From what Iāve seen, this already exists in the core, but not to the extent that it handles āenvā as the binary, with the actual binary (such as āpythonā) as an argument to env.
Essentially, the plugin capitalises the first character of the binary it finds and matches that against syntax directories and files in the Packages directory. In some cases, this wonāt work (āPHPā is all upper-case, Bash is āShellScript/Shell-Unix-Generic.tmLanguageā) - when this is the case, simply add those to the plugin settings file. This also works if you have additional binaries that need to use the same syntax - an example being āpython2ā and āpython3ā needing to use the Python syntax.
More info can be found here - Iām currently waiting for the plugin to be added to Will Bondās Package Control.
Any issues, please raise them on GitHub