grc icon indicating copy to clipboard operation
grc copied to clipboard

conf.sh / conf.bash - for shell scripts

Open sarnobat opened this issue 7 years ago • 3 comments

I couldn't find a conf file for shell scripts. If one doesn't exist, could we create one? I sometimes like to do this:

cat run.sh | grcat ~/conf.sh

(I know grcat shouldn't be used directly but it is Unix idiomatic so very convenient to stick onto the end of whatever you were doing)

sarnobat avatar Aug 25 '17 18:08 sarnobat

I'd look at highlight, which is a versatile syntax highlighter for programming languages as opposed to this, which is built to highlight programs' output.

xPMo avatar Apr 07 '18 04:04 xPMo

Thansk for the suggestion, I'll take a look.

sarnobat avatar Dec 19 '18 04:12 sarnobat

These do the job nicely:

cat download_images_all.sh | highlight --out-format=ANSI
cat download_images_all.sh | highlight --syntax=c --out-format=ANSI

sarnobat avatar Dec 19 '18 04:12 sarnobat