From 41a9c6c81eecd48ee2b71059abd2eb3390e6cc62 Mon Sep 17 00:00:00 2001 From: "committer@tuxwarrior" Date: Tue, 13 May 2025 17:06:25 -0500 Subject: [PATCH] / trash-confirm well, are we done now? --- dots/lf/lfrc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/dots/lf/lfrc b/dots/lf/lfrc index e2bf39c..d67038a 100644 --- a/dots/lf/lfrc +++ b/dots/lf/lfrc @@ -120,14 +120,11 @@ cmd trash %tp.sh "$fx" # IFS=':'; echo $fs | tr " " "\n" cmd trash-confirm ${{ - echo $f - echo '---' + echo 'file(s) selected:' echo $fx - echo '---' - echo $fs - echo 'delete "$f $fx"? [y/n]' + echo 'delete? [y/n]' read ans - [ $ans = 'y' ] && (echo 'deleting files… $fx' && trash %tp.sh "$fx") || echo 'cancelled…' + [ $ans = 'y' ] && (echo 'deleting files…' && trash %tp.sh "$fx") || echo 'cancelled…' }} # extract the current file with the right command (https://xkcd.com/1168/)