diff options
Diffstat (limited to 'modules/by-name/lf/lf/commands/scripts/trash_clear.sh')
-rwxr-xr-x | modules/by-name/lf/lf/commands/scripts/trash_clear.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/by-name/lf/lf/commands/scripts/trash_clear.sh b/modules/by-name/lf/lf/commands/scripts/trash_clear.sh new file mode 100755 index 00000000..647d1b6e --- /dev/null +++ b/modules/by-name/lf/lf/commands/scripts/trash_clear.sh @@ -0,0 +1,9 @@ +# shellcheck shell=sh + +conceal list | fzf --multi | awk '{for(i=3; i<=NF; i++) {print $i}}' | while read -r file; do + set -- "$@" "$file" +done + +trash empty --match=exact "$@" + +# vim: ft=sh |