Sometimes a cute ASCII ant run across your terminal when you type la, if you're lucky enough.
It's just a joke command, and not useful at all. Here's how it looks like:
This project uses curses.h library, which you can install on Ubuntu by running:
sudo apt-get install libncurses5-dev libncursesw5-dev
To compile, run:
make clean && make
After compiling, if you want the command run only sometimes when you type la,
add this to your .bashrc, .zshrc, or .somethingelserc:
unalias la # Unalias the usual la command
function la {
if (( $RANDOM % 10 == 0 ));
then
~/path_to_project/la
else
ls -lAh # "Re-alias" the unalised command
fi
}
With this configuration, lucky ant appears with probability of 1/10.
Inspired by and forked from the cult classic sl by Toyoda Masashi ([email protected])