Pjcolor is a small AWK script for coloring and formating
pijul change command like outputs.
At the same time providing sane theming capabilities(as far as AWK allows)
Everyone loves screenshots, so here is one.
Default theme should look good with most dark and bright color schemes.
pijul clone https://nest.pijul.com/levi/pjcolor
pjcolor file anywhere in the file system, for example in
Give it execute permission
chod +x ~/pijul/scripts/pjcolor
Update your $PATH variable
In case of bash
export PATH=$PATH:~/pijul/scripts/ in your
~/.profile or '~/.bashrc' file
In case of fish
set PATH $PATH ~/pijul/scripts
set -x PATH ~/pijul/scripts in your
In case of csh/tcsh (freeBSD)
set path = ($path ~/pijul/scripts)
set path = ($path ~/pijul/scripts) in your
Pjcolor is just simple script to pipe through:
pijul change | pjcolor
pijul change <HASH> | pjcolor
For compatibility reasons the Unicode arrow character at the beginning of the line (see screenshot) has been disabled by default.
To enable it, uncomment variable "MARKER" and install one of the following patched fonts:
In case you want to create your own Pjcolor theme. It is best to include it like this:
Don't forget to comment out existing default theme. Also export your $AWKPATH Environment Variable. This will allow AWK to pickup your theme without need to provide full path.