a bat clone in shell and awk
- Shell 96.3%
- Makefile 3.7%
|
eylles
f37da73bf8
If a plain text type file has no extension just handle it with cat |
||
|---|---|---|
| .editorconfig | Add editorconfig | |
| awkat.sh | Add special handling for plain text | |
| LICENSE | commit dis | |
| Makefile | Do not rm in the install target | |
| readme.md | change: formatting | |
| screenshot.png | add: screenshot | |
AWKat
somewhat of a bat in awk
why ?
i'm not installing all the rust deps when i can just wrap some stuff i got installed already in a script /s
usage
just run make to install or uninstall, all this depends on is awk ( bsd awk should work ), a shell interpreter and a highlighter program like highlight or source-highlight, alternatively you can provide your own highlighter command with the HIGHLIGHTER env var
in debian and derivates just run:
sudo apt install highlight
or
sudo apt install source-highlight
in arch and derivates:
sudo pacman -S highlight
or
sudo pacman -S source-highlight
TODO
- add screenshots
- try to have just one awk command
- env vars to config file name color (doing some tests it seems this one aint doable)
- try to have dynamic box draw char lenght or use env var for lenght (AWKAT_COLS)