I'd like to do this, on OSX:
alias rm="rm -I"
In GNU rm, this means that rm
will prompt if it's recursive or if it's deleting three or more files, but not if it's just deleting one or two files. However, OSX (Mavericks) rm doesn't support this.
Is there a workaround so that rm
will prompt, once, when deleting several files, but won't prompt for single files, or for every single file in mass deletes?