Bat: Add syntaxes for prominent (configuration) files like /etc/fstab

Created on 11 Jun 2019  路  6Comments  路  Source: sharkdp/bat

It would be great if we could offer (even simple) syntax highlighting for some of the more famous configuration files:

config:

  • [x] /etc/fstab
  • [x] /etc/passwd and /etc/group
  • [x] /etc/resolv.conf
  • [x] /etc/hosts
  • [x] /etc/ssh_config and /etc/sshd_config

less important (IMO):

  • [ ] /etc/X11/xorg.conf and /etc/X11/xorg.conf.d/*
  • [ ] /etc/ld.so.conf

non-config files that would be nice to have:

  • [x] /proc/cpuinfo
  • [x] /proc/meminfo

This is partly related to #592

good first issue help wanted syntax-request

All 6 comments

see updates in #698 and #703

and more updates in #696 #706

Added simple syntaxes for /proc/meminfo and /proc/cpuinfo.

I'm going to close this for now, as all the important things have been covered.

This has been released in bat 0.13.

@sharkdp Does bat have syntax highlighting for nginx / apache configs?

Sublime pacakges for the same:

https://github.com/colinta/ApacheConf.tmLanguage

https://github.com/brandonwamboldt/sublime-nginx/tree/master/Syntaxes

Could you please open a new "syntax request" ticket? Thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tomgoren picture tomgoren  路  3Comments

rien333 picture rien333  路  3Comments

yannallain picture yannallain  路  3Comments

gwpl picture gwpl  路  3Comments

sharkdp picture sharkdp  路  3Comments