shell-safe-rm
shell-safe-rm copied to clipboard
😎 Safe-rm: A drop-in and much safer replacement of bash rm with nearly full functionalities and options of the rm command! Safe-rm will act exactly the same as the original rm command.
Thank you for a great program! I've been using it for a while, however I got an error today for a filename with more than two spaces: ``` touch "a...
Original rm will return 0 with '-f' options if it does not found target files, while the shell-safe-rm returns 1. This inconsistancy will cause some software (e.g. qemu) fail to...
is it support ignore directory which should call `/bin/rm' direct. like some temporary file `/tmp/xxx`
### Safety scope ``` $ alias rm="safe-rm --scope=~" $ rm -rf / rm: target '/' skipped, unsafe directory scope ``` ``` $ alias rm="safe-rm --scope=." $ rm -rf ./foo $...
- [ ] uses shell function instead of script file - [ ] new env to specify the path of configuration file - [ ] blacklist of non-deletion files -...
Now shell-safe-rm will consider a symlink to a directory like a regular file; Added indentation in `directory` condition
First of all, thank you for coding such a useful tool. It would be good if it had preemtive non-deletion mechanism for user space essential directories, such as XDG_DESKTOP_DIR="$HOME/Desktop" XDG_DOWNLOAD_DIR="$HOME/Downloads"...