diff options
author | ene <ene@sils.li> | 2023-02-19 21:29:01 +0100 |
---|---|---|
committer | ene <ene@sils.li> | 2023-02-19 21:30:25 +0100 |
commit | 9108d474af7776767d93eb933ff4b0b09772917a (patch) | |
tree | 0f8706dd91d9f6b9242717e482e41f8b6b24ed8e /home-manager/config/lf/cmds/restore_trash.sh | |
parent | Fix(bootstrap): Fix a copy and paste oversight (diff) | |
download | nixos-config-9108d474af7776767d93eb933ff4b0b09772917a.tar.gz nixos-config-9108d474af7776767d93eb933ff4b0b09772917a.zip |
Feat(lf): Add dependencies for the shell scripts
Diffstat (limited to 'home-manager/config/lf/cmds/restore_trash.sh')
-rw-r--r-- | home-manager/config/lf/cmds/restore_trash.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/home-manager/config/lf/cmds/restore_trash.sh b/home-manager/config/lf/cmds/restore_trash.sh index 432e9e9b..fd4641eb 100644 --- a/home-manager/config/lf/cmds/restore_trash.sh +++ b/home-manager/config/lf/cmds/restore_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-restore +trash list | fzf --multi | awk '{print $NF}' | xargs trash restore --match=exact + if [ -d /tmp/LIB_FILE_TEMP_DIR/ ];then rm -r /tmp/LIB_FILE_TEMP_DIR/; fi |