Skip to content

toriagibbs-zz/sharkattack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shark Attack

Live Dangerously

Tired of running boring terminal commands from the safety of dry land? Spice up your day with the pervasive danger of a shark attack.

1. Demo

plain mode, for those who like to keep it simple. VT100 compatible.

Plain Mode Demo

State of the art color mode for VGA displays.

Color Mode Demo

Terrifyingly realistic curses mode for the true thrillseeker.

Curses Mode Demo

2. Installation

2.1 Prerequisites

  • Python 2
  • Galeophobia of some degree

2.2 sharkattack

  1. Put sharkattack somewhere in your $PATH.
  2. Put the sharks folder somewhere. /var/lib/sharkattack will do nicely.
  3. Put sharkattack.sh somewhere else. Source it in your .bash_profile.
  4. Use shark_alias instead of boring old alias to add a little danger to your life.
. /path/to/sharkattack.sh
shark_alias ls 'ls -GFh' 2 # 2% chance of sharkattack
shark_alias ll 'ls -GFhAlp' 2
shark_alias cointoss "echo 'SAFE.'" 50 # 50% chance of sharkattack

3. Configuration

You can override the following env variables:

  • SHARK_ATTACK_DATA: Where the important data (sharks folder) lives. Default: /var/lib/sharkattack
  • SHARK_ATTACK_MODE: How realistic do you want your sharks? (plain, color, or curses) Default: curses

If you want to live really dangerously, why not combine Shark Attack with a healthy sprinkling of shopt -s expand_aliases in your production scripts? (Warning: this will almost certainly get you fired. Hooray!)

4. License

This software is distributed under the MIT License.

About

Live dangerously.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 78.6%
  • Shell 21.4%