tsh is a simple command-line tool written in Rust that moves files and folders to the Trash Bin, instead of permanently deleting them.
Make sure you have Rust installed.
cargo install tshIf installing from a local directory:
git clone https://github.com/imnyang/tsh.git
cd tsh
cargo install --path .tsh <file_or_folder> [more_files_or_folders...]tsh file.txt
tsh folder/ notes.md image.png-
โ Safe delete: files go to Trash, not permanently removed.
-
๐ง Built on the reliable trash crate.