{"repo":"kaelzhang/shell-safe-rm","free":true,"listed":false,"github":"https://github.com/kaelzhang/shell-safe-rm","clone":"git clone https://github.com/kaelzhang/shell-safe-rm.git","description":"😎 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.","language":"JavaScript","stars":617,"topics":["bash","shell","safe-rm","rm","replacement","trash","alternative","remove","mac","macos"],"license":null,"category":"cli-tools","readme_excerpt":"safe-rm [Safe-rm][safe-rm], a drop-in and much safer replacement of the unix [ rm ][rm] command with ALMOST FULL features of the original [ rm ][rm]. The project was initially developed on Mac OS X and has been continuously used by myself since then, with later testing conducted on Linux. If you encounter any issues during use, please feel free to submit an issue. Features - Supports both MacOS and Linux with full test coverage. - Using safe-rm , the files or directories you choose to remove will be moved to the system Trash instead of simply deleting them. You could put them back whenever you want manually. - On MacOS, safe-rm will use [AppleScript][applescript] to delete files or directories as much as possible to enable the built-in \"put-back\" capability in the system Trash bin. - On Linux, it also follows the operating system's conventions for handling duplicate files in the Trash to avoid overwriting - On Linux, it can optionally keep a trash directory per filesystem/mount so deletes across devices stay instant (opt-in, see SAFE RM TRASH PER MOUNT ) - Supports Custom configurations. Supported options For those implemented options, safe-rm will act exactly the same as the original rm command: Option Brief Description ------ ----- ------------ -i , --interactive Interactive Prompts you to confirm before removing each file -I , --interactive=once Less Interactive Prompts only once before removing more than three files or when recursively removing directories -f , --force Fo","default_branch":null,"files":null,"tree":[],"storefront":"/r/kaelzhang","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kaelzhang/shell-safe-rm/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}