Skip to content

Instantly share code, notes, and snippets.

View mcisback's full-sized avatar

Mark Caggiano mcisback

View GitHub Profile
@mcisback
mcisback / rm-guards-protection.sh
Last active December 12, 2025 21:30
rm protection and guards in bash
# Put this in your .bashrc
# Load it with source ~/.bashrc
rm() {
local YES="false"
local args=()
local protected_dirs=(
"/"
"/Volumes"