eth-p / eth-p/bat-extras

prettybat can't read from pipe

Open
#51 6 comments 0 reactions 1 assignee Claimed by @eth-p View on GitHub
bug prettybat
Dominant language
Shell
Stars
1.6k
Forks
95
PR merge metrics
No merged PRs in 30d

Description

When trying to preview a remote file (e.g. an installer shell script) I'd like to be able to fetch a file from a server with curl and pipe the result to prettybat. This works fine when using just bat for the syntax highlighting, but prettybat either doesn't seem to support that use case or needs to be fixed.

```bash
$ curl https://sh.rustup.rs | prettybat
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0[prettybat error]: -: No such file or directory
85 18636 85 15971 0 0 318k 0 --:--:-- --:--:-- --:--:-- 318k
curl: (23) Failure writing output to destination
```

It would be nice if this could be supported.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.