diff --git a/lfrc b/lfrc index 2c9b45e..3eb6ee8 100644 --- a/lfrc +++ b/lfrc @@ -55,17 +55,17 @@ cmd open ${{ cmd trash %set -f; mv $fx ~/.trash # define a custom 'delete' command -# cmd delete ${{ -# set -f -# printf "$fx\n" -# printf "delete?[y/n]" -# read ans -# [ $ans = "y" ] && rm -rf $fx -# }} +cmd delete ${{ + set -f + printf "$fx\n" + printf "delete?[y/n]" + read ans + [ $ans = "y" ] && rm -rf $fx +}} # use '' key for either 'trash' or 'delete' command # map trash -# map delete +map delete # extract the current file with the right command # (xkcd link: https://xkcd.com/1168/)