about summary refs log tree commit diff stats
path: root/home-manager/config/lf/cmds/clear_trash.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--home-manager/config/lf/cmds/clear_trash.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/home-manager/config/lf/cmds/clear_trash.sh b/home-manager/config/lf/cmds/clear_trash.sh
index c02321f2..d732756f 100644
--- a/home-manager/config/lf/cmds/clear_trash.sh
+++ b/home-manager/config/lf/cmds/clear_trash.sh
@@ -1,10 +1,11 @@
-#!/bin/sh
+#!/usr/bin/env dash
 # shellcheck disable=SC2086
 # shellcheck source=/dev/null
-. ~/.local/lib/shell/lib
+. %SHELL_LIBRARY_PATH
 
 
-trash-empty
+# could also use --force, for instand removal
+trash list | fzf --multi | awk '{print $NF}' | xargs trash empty --match=exact
 
 
 if [ -d /tmp/LIB_FILE_TEMP_DIR/ ];then rm -r /tmp/LIB_FILE_TEMP_DIR/; fi