Crates.io | sfrm |
lib.rs | sfrm |
version | 0.1.0 |
source | src |
created_at | 2022-03-20 15:53:45.570363 |
updated_at | 2022-03-20 15:53:45.570363 |
description | Safe rm alternative |
homepage | https://gitlab.com/magmast/sfrm |
repository | https://gitlab.com/magmast/sfrm |
max_upload_size | |
id | 553612 |
size | 28,470 |
alias rm="sfrm"
and never remove anything accidentally.
Simple alternative to rm
command, which puts removed files to trash instead of
removing them. I think it doesn't need much explanation of why is it useful.
CLI usage should be 100% compatible with rm
command. But it isn't as I don't
really need that. So instead it currently supports only the things listed in the
table below and I'll implement more of them when I'll need them or someone will
request it.
Feature | Supported |
---|---|
-f , --force |
Yes |
-i |
No |
-I |
No |
--interactive[=WHEN] |
No |
--one-file-system |
No |
--preserve-root[=all] |
No |
-r , -R , --recursive |
Yes* |
-d , --dir |
Yes |
-v , --verbose |
No |
--help |
Yes |
--version |
Yes |
Compatible output | No |
* Only -r
and --recursive
are supported.
cargo install sfrm
echo 'alias rm="sfrm"' >> ~/.bashrc # (optional) replace .bashrc with appropriate file for your shell
This project is licensed under the MIT license or the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.