dsh-safety-remove

Moves every shell-deletion target into a per-Session staging folder and refuses the original command, keeps one pre-write copy of each file the first time it is overwritten, and adds a right-Sidebar tab that previews, restores, recycles or permanently deletes staged items. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

Overview

Moves every shell-deletion target into a per-Session staging folder and refuses the original command, keeps one pre-write copy of each file the first time it is overwritten, and adds a right-Sidebar tab that previews, restores, recycles or permanently deletes staged items. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

Installation

Install from GitHub

dsh plugin --profile web add github:CatBox215/dsh-safety-remove

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.

Installation notes

  • May run terminal commands