A totally useless but 'must have' bloatware (tribute to systemd)
random_ascii is a simple binary that picks a random ascii file in your collection, which fits in your current terminal (checking terminal and file size)...
This 'rust version' is something like ten times faster than the bash version but certainly more buggy (my first rust program) ...
Files are fully parsed just one time, and cached in fileDB, to offer better performance...
cargo
for building, and for a better experience, you should install the dotacat
package (default renderer)Install dotacat
or a renderer of your choice
shell
cargo install dotacat
or (if you don't have cargo)
shell
sudo apt install lolcat
Just put the randomascii binary (from ./latestrelease/) somewhere in your $PATH...
shell
[[ "$(echo $PATH | grep '/usr/local/bin')" ]] && cp ./random_ascii /usr/local/bin/
... or add the destination to your $PATH, ex :
```shell mkdir -p "${HOME}/bin" && cp ./latestrelease/randomascii "${HOME}/bin/random_ascii"
if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi
```
${HOME}/.config/random_ascii/
.ascii
extensionshell
random_ascii
cat
or dot2acat
or whatever...)
shell
random_ascii -p=Documents/my_ascii_files -e=txt -d=cat -h=4 -r