BLÅHAJ
Gay sharks at your local terminal
What is BLÅHAJ?
Apart from a cute cuddly shark plushie from IKEA, BLÅHAJ is a lolcat-like CLI tool that colorizes your input, shows flags and prints colorful sharks!
It has a wide variety of flags/colors to choose from and many options from flag size to whether to colorize by line, word or character.
Installation
Pre-built
You can download one of the statically-linked pre-built binaries from the releases page.
They are built & published by our lovely actions.
AUR
Arch Linux users can install the blahaj (or the blahaj-git) AUR package.
Docker
docker run --rm -it --name blahaj ghcr.io/geopjr/blahaj -h
Building
Dependencies
crystal
-1.8.0
Makefile
$ make
(or$ make static
on Alpine Linux for a static build)# make install
Multithreading
Releases are already in mt mode. It makes BLÅHAJ a lot faster:
$ make build_mt
(or$ make static_mt
on Alpine Linux for a static build)# make install
FAQ
Why are only striped flags allowed?
Flags with eg. triangles, circles or symbols, need enough horizontal space to determine where and how to display them. BLÅHAJ can't know in advance how long the input is going to be.
Why are the stripes repeating instead of showing the flag in full?
Just like the previous question, BLÅHAJ can't know how long the text is going to be (vertically) since it colorizes the input as it comes in.
I would like to add a color scheme or flag
Great! Follow the Contributing section and modify data/colors.yaml.
flag name:
color:
- hex color
- per
- stripe
alias:
- aliases
- if any
Examples
$ blahaj -h
BLÅHAJ v2.2.0
Usage:
blahaj [arguments]
blahaj [arguments] file
command | blahaj [arguments]
Examples:
blahaj -c trans ~/.bashrc
blahaj -s -b
neofetch | blahaj -c gay
blahaj -f -c lesbian -m 4
blahaj -w /etc/os-release
Arguments:
-b, --background Color the background
-s, --shark Shork
-f, --flag Return a flag
-i, --individual Color individual characters
-w, --words Color individual words
-m MULTIPLIER, --multiplier=MULTIPLIER
Multiplier for the flag size (-f)
-c FLAG, --colors=FLAG Color scheme to use (Default: trans)
-r, --random Use a random color scheme
--flags List all available flags
-h, --help Show this help
Shark (-s
), flag (-f
), flag with 2x multiplier (-f -m 2
)
Pipe, individual characters instead of rows (-i
)
Read from file, background instead of foreground (-b
), individual words instead of rows (-w
)
Notice how the foreground color changes based on the background color.
Pipe, default color scheme
All images above include ALT text and you are encouraged to read it, if you find parts of them confusing, by using screen readers, hovering over them with your cursor or looking at the source.
Contributing
- Read the Code of Conduct
- Fork it ( https://github.com/GeopJr/BLAHAJ/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Sponsors