gomi

A Safer Alternative to the UNIX rm Command!

GitHub Repo stars

Safety First, Always

Never worry about accidentally deleting important files again. gomi moves them to trash instead of permanent deletion, giving you peace of mind while working in the command line.

gomi CLI demonstration

📂 Safe File Handler

Works exactly like rm but with a safety net. Seamlessly replace your existing rm command with gomi using a simple alias, maintaining all your familiar command flags.

🔄 Quick Recovery

Made a mistake? No problem. Quickly restore files to their original location with a simple gomi --restore command. Includes an intuitive interface for browsing and selecting files to restore.

🗑️ XDG Trash Spec

Fully compatible with the XDG Trash specification. Integrates seamlessly with other trash management tools like trash-cli, ensuring consistent file handling across different tools.

Installation

$ curl https://gomi.dev/install | bash

Usage

$ gomi example.txt
Moving example.txt to trash...

$ gomi --restore
Restored example.txt to original location