Skip to content

bat does not print colored output on debsources filetype files #3214

@Drew-Daniels

Description

@Drew-Daniels

First off, thanks so much for making this! I use this as well as your bat-extras tools everyday in my development workflow. I'm not sure if this is a bug or a feature request, but figured I would put this out there either way - I couldn't find any similar issues listed atm.

What steps will reproduce the bug?

  1. Install bat with sudo apt install bat
  2. Create a symlink with: ln -s /usr/bin/batcat ~/.local/bin/bat
  3. cd /etc/apt
  4. bat sources.list

What happens?
See that you do not get a colored output of the sources.list file

What did you expect to happen instead?
I would expect that since I am able to get syntax highlighting for debsources filetypes in my editor (neovim) that I would also be able to get them with bat

How did you install bat?

apt-get

bat version and environment

**$ uname -srm**
Linux 6.1.0-31-amd64 x86_64  

**$ lsb_release -a**
Distributor ID: Debian  
Description:    Debian GNU/Linux 12 (bookworm)  
Release:        12  
Codename:       bookworm  

bat
---

**$ bat --version**
bat 0.22.1  

**$ env**

bat_config
----------

bat_wrapper
-----------

No wrapper script for 'bat'.

bat_wrapper_function
--------------------

No wrapper function for 'bat'.

No wrapper function for 'cat'.

tool
----

**$ less --version**
less 590 (GNU regular expressions) 

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions