Description
Many Linux config files in /usr/share/ /etc/ ~/.config/ ~/.* ~/.local/share, etc. have extensions (usually .conf) do not correspond to actual content.
for example my ~/.config/micro/settings.json
{
"/etc/default/grub": {
"filetype": "bash"
},
"/etc/avahi/avahi-daemon.conf": {
"filetype": "toml"
},
"*.conf": {
"filetype": "toml"
},
"**/avahi/*.service": {
"filetype": "xml"
},
"*.hook":{
"filetype":"toml"
},
"/usr/share/dbus-1/*.conf":{
"filetype":"xml"
}
}
and this is far to be complete. Let's add some config-filetypes.json to all-users config for micro. I am pretty sure somebody have better more full list.
Description
Many Linux config files in
/usr/share//etc/~/.config/~/.*~/.local/share, etc. have extensions (usually .conf) do not correspond to actual content.for example my
~/.config/micro/settings.json{ "/etc/default/grub": { "filetype": "bash" }, "/etc/avahi/avahi-daemon.conf": { "filetype": "toml" }, "*.conf": { "filetype": "toml" }, "**/avahi/*.service": { "filetype": "xml" }, "*.hook":{ "filetype":"toml" }, "/usr/share/dbus-1/*.conf":{ "filetype":"xml" } }and this is far to be complete. Let's add some
config-filetypes.jsonto all-users config for micro. I am pretty sure somebody have better more full list.