From e3bc11408f41959dcc041647a201291e3683ec1c Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Wed, 20 Mar 2019 21:45:09 +0300 Subject: [PATCH] update example configuration --- etc/lfrc.example | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/etc/lfrc.example b/etc/lfrc.example index 4dc2395..103b41b 100644 --- a/etc/lfrc.example +++ b/etc/lfrc.example @@ -47,20 +47,24 @@ cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1 map r push :rename # make sure trash folder exists -%mkdir -p ~/.trash +# %mkdir -p ~/.trash # move current file or selected files to trash folder # (also see 'man mv' for backup/overwrite options) cmd trash %set -f; mv $fx ~/.trash -# delete current file or selected files (prompting) -cmd delete ${{ - set -f - printf "$fx\n" - printf "delete?[y/n]" - read ans - [ $ans = "y" ] && rm -rf $fx -}} +# define a custom 'delete' command +# 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 # extract the current file with the right command # (xkcd link: https://xkcd.com/1168/)