Skip to content
forked from mtoyoda/sl

Shows you a high quality animation of ants, if you're lucky enough.

License

Notifications You must be signed in to change notification settings

blasted-tiara/la

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lucky Ant

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:

Build

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])

About

Shows you a high quality animation of ants, if you're lucky enough.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 96.9%
  • Makefile 3.1%