So, this is totally stupid and just an aesthetic problem. I'm looking to simply disable rm, because I'm using more secure functions, so I'm just training myself to stop using rm with messages. I tried the following:
alias rm='echo "No using rm. Use other thing instead."'
and
function rm () {
echo "No using rm. Use other thing instead."
}
But when I run rm -rf testfolder/ the output is:
No using rm. Use other thing instead. -rf testingfolder/
Is there a way to have it not put the -rf testingfolder/ at the end?
EDIT: For some reason, the function just wasn't working correctly, and I needed to restart my computer to make it work. Really odd.
rmdefinition and just use the function.