Skip to content

Auto syntax detector for bashrc, bash_profile, ... file formats #3145

@imahmadrezas

Description

@imahmadrezas

Well...
bat can automatically highlight .bashrc and .bash_profile, etc; but it doesn't include files like xyz.bashrc or something.bash_profile.

In archlinux files /etc/bash.bash_bashrc and /etc/bash.bash_bash_logout are not automatically hightlighted. Of course the issue can be solved by adding -l <syntax> but that's such a pain.

Screenshot_20241212_180615

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomerssyntax-mapping-requestA syntax definition exists but isn't chosen automatically

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions