zsh-bat/manbat

9 lines
212 B
Plaintext
Raw Normal View History

2024-05-16 08:43:05 -05:00
#!/bin/sh
prg="$1"
shift
# mandoc passes a file name, other tools write to stdout
# using `cat "$@"` we take care of both reading from file and stdin
exec cat "$@" | col -bx | $prg --language man --style plain