From 3c9de23a2901958784a76ed198327e1d8e5eff85 Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Fri, 5 Jan 2024 20:30:02 +0100 Subject: [PATCH] new function to trash files instead of removing them permanently --- ansible/roles/fish/files/fish/functions/rm.fish | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 ansible/roles/fish/files/fish/functions/rm.fish diff --git a/ansible/roles/fish/files/fish/functions/rm.fish b/ansible/roles/fish/files/fish/functions/rm.fish new file mode 100644 index 0000000..b0960c0 --- /dev/null +++ b/ansible/roles/fish/files/fish/functions/rm.fish @@ -0,0 +1,4 @@ +function rm + # Use GIO in order to move the file to trash instead of deleting it permanently + /usr/bin/gio trash $argv +end