From cd25fb4c8533715bc17403f53fd329bed2bee499 Mon Sep 17 00:00:00 2001 From: dabruh <11458706-dabruh@users.noreply.gitlab.com> Date: Fri, 3 Jun 2022 20:25:27 +0200 Subject: [PATCH] Trash file instead of rm. --- .local/bin/cmus-track | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/cmus-track b/.local/bin/cmus-track index f59ac09..fd96529 100755 --- a/.local/bin/cmus-track +++ b/.local/bin/cmus-track @@ -21,7 +21,7 @@ FILE="$(get_field file)" ACTION="$1" if [ "$ACTION" == "rm" ]; then - rm -vI "$FILE" + trash -v "$FILE" cmus-remote --next elif [ "$ACTION" == "mv" ]; then TARGET_DIR="${2}"