From 0b0222579a37c57e8e28efcc464a89be0aaf4762 Mon Sep 17 00:00:00 2001 From: toboil-features <160222185+toboil-features@users.noreply.github.com> Date: Sun, 5 Apr 2026 19:41:36 +0300 Subject: [PATCH] Add steps to replace rm in README.md --- README.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.rst b/README.rst index 30d64912..4902cf2f 100644 --- a/README.rst +++ b/README.rst @@ -123,6 +123,11 @@ Can I alias `rm` to `trash-put`? You can but you shouldn't. In the early days I thought it was a good idea to do that but now I changed my mind. +Steps :: + + sudo ln -sf "$(command -v trash-put)" /usr/local/bin/rm + sudo chmod 755 /usr/local/bin/rm + Although the interface of `trash-put` seems to be compatible with `rm`, it has different semantics which will cause you problems. For example, while `rm` requires `-R` for deleting directories `trash-put` does not.