Skip to content

🐛 Dockerfile isn't colored #275

@kjmph

Description

@kjmph

Here is an example Dockerfile:

$ cat Dockerfile
FROM debian
RUN echo "Hello World"

CMD ["/bin/bash"]
$ git diff | cat
diff --git a/Dockerfile b/Dockerfile
index 909c906..d43d53c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,2 +1,4 @@
 FROM debian
 RUN echo "Hello World"
+
+CMD ["/bin/bash"]

However, here is a screenshot of the delta output:

Screen Shot 2020-08-05 at 9 43 44 PM

bat does have support for Dockerfile coloring:

Screen Shot 2020-08-05 at 9 48 09 PM

Any other information I can provide? Other files are colored fine. Except that I notice a Makefile seems to lose colors after the hunk, maybe it is related to files without extensions?

Screen Shot 2020-08-05 at 9 49 51 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions