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.
State of the art color
mode for VGA displays.
Terrifyingly realistic curses
mode for the true thrillseeker.
2. Installation
2.1 Prerequisites
- Python 2
- Galeophobia of some degree
2.2 sharkattack
- Put sharkattack somewhere in your
$PATH
. - Put the
sharks
folder somewhere./var/lib/sharkattack
will do nicely. - Put sharkattack.sh somewhere else. Source it in your
.bash_profile
. - Use
shark_alias
instead of boring oldalias
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
, orcurses
) 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.