fix(filetype): correctly detect bash-fc-{id} files as "sh"

This commit is contained in:
smjonas 2023-06-21 07:12:53 +02:00
parent 771dad7a05
commit fdf5013e21

View File

@ -2188,7 +2188,7 @@ local pattern = {
['.*/etc/profile'] = function(path, bufnr)
return require('vim.filetype.detect').sh(path, M.getlines(bufnr))
end,
['bash%-fc[%-%.]'] = function(path, bufnr)
['bash%-fc[%-%.].*'] = function(path, bufnr)
return require('vim.filetype.detect').sh(path, M.getlines(bufnr), 'bash')
end,
['%.tcshrc.*'] = function(path, bufnr)