Neovim Autocmd to recognise a BASH script by its shebang

I wrote an autocmd for Neovim to automatically set the filetype to ‘sh’ when opening a BASH script identified by its shebang line. It’s pretty cool, if you ask me.



all tags