[-] Block 7z d :((((

This commit is contained in:
2024-11-06 11:50:33 -05:00
parent 1d1827632b
commit df78c2491d
+9
View File
@@ -193,6 +193,15 @@ gradle() {
fi
}
# Block the 7z d command becuase it's dangerous
7z() {
if [[ "$1" == "d" ]]; then
echo "7z d is blocked. It doesn't stand for decompress, it stands for delete."
else
command 7z "$@"
fi
}
# Unix permissions reset (Dangerous! This will make executable files no longer executable)
reset-permissions-dangerous() {
sudo find . -type d -exec chmod 755 {} \;