sharkdp/bat

Reading shebang

tanavamsikrishna opened this issue · 1 comments

Thanks for the amazing tool.

Is it possible that bat tries to read the shebang of content passed to it to determine the appropriate syntax highlighting.

It should do this if both the following are true.

  1. The file does not have a file extension (maybe because the file is a shebang using executable)
    or the content is passed to it via a pipe or stdin
  2. --language option is not used

Closing because duplicate of #1600