random_ascii (rust version)

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...

Install

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"

Check if you have this line in your ~/.profile or ~/.bashrc ...

~/.profile

if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi

restart your term or source ~/.profile or ~/.bashrc ...

```

Case 1 : you're already ok with the default options

Case 2 : you may want to change some option