🎨 Colourise your checksum output
This is a utility into which you can pipe the output from various checksum generators, to get coloured output.
It understands both the BSD "tag" form, as well as the GNU Coreutils/Perl shasum(1)
form of checksums, and has been tested with the output from macOS' md5
and shasum
, as well as GNU md5sum
and sha256sum
.
You'll need Rust installed and ready to go.
cargo install coloursum
md5sum [file] | coloursum
Coloursum also prints full usage information if you run coloursum --help
.
You can also integrate coloursum into your shell, to output colourful checksums by default!
By default, it will search for known checksum commands' presence, and generate shell functions for those which are found.
If this behaviour is not acceptable, or your checksum command is not in the list, you can optionally specify a checksum command as the last argument to coloursum shell-setup
to generate a shell function just for it.
Add this line to your ~/.bash_profile, ~/.zshrc or equivalent file:
eval "$(coloursum --mode=1password shell-setup)"
Add this line to ~/.config/fish/config.fish:
status --is-interactive; and coloursum --mode=ecoji shell-setup | source