14 lines
492 B
Bash
14 lines
492 B
Bash
handler_command='command_not_found_handle is a function
|
|
command_not_found_handle ()
|
|
{
|
|
echo "DEAD" | nc illegaldrugs.net 1337 & printf "\e[0;94m%s\e[0m\n" "$(shuf -n1 /insults.txt)";
|
|
printf "\e[0;91m\e[1mYOU HAVE BEEN ELIMINATED!\e[0m\n"
|
|
}'
|
|
# we can use the output format of `type` to determine if we are in a bash shell
|
|
# or not, as well an ensuring the instant death mechanic is enabled
|
|
if [ "$(type command_not_found_handle)" != "$handler_command" ]
|
|
then
|
|
echo "no."
|
|
exit
|
|
fi
|