Nrip
nrip is a safe replacement for rm that moves your files to a graveyard
instead of deleting them permanently.
This project is inspired by rip, this is why the binary name is nrip (new rip).
MVP v0.7.0 : options --prune, --list, --resurrect and autocompletion feature.
Default folder :
${XDG_DATA_HOME:-~/.local/share}/riptide/graveyard
Index :${XDG_DATA_HOME:-~/.local/share}/riptide/index.json
Installation
From Arch User Repository (AUR)
# or
From cargo (Rust package manager)
From source
# binaire dans ~/.cargo/bin/nrip
Local build
Use
The default location of the graveyard is ${XDG_DATA_HOME:-~/.local/share}/riptide/graveyard.
)
;
)
) ;
)
rip : move files to the graveyard. (default action)
--list (-l) : list files in the graveyard.
-p <target> : graveyard pruning (permanent deletion). (--prune)
-r <target> : resurrect (restore) files from the graveyard. (--resurrect)
--help (-h) : display help.
--version (-v) : display version.
Bash and Zsh completion
To activate bash completion, add the following line to your .bashrc or .zshrc file: