From 5a4446cb9890d9932cb7abbf9b10eb2b37e1058f Mon Sep 17 00:00:00 2001 From: Luca Bilke <bilke@tralios.de> Date: Mon, 1 Aug 2022 15:39:53 +0200 Subject: [PATCH] refactor --- .config/lf/lfrc | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 41f464bf..f2802092 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -70,7 +70,6 @@ cmd trash ${{ [ $ans = "y" ] && trash-put $fx }} - cmd moveto ${{ clear; tput cup $(($(tput lines)/3)); tput bold set -f @@ -94,13 +93,13 @@ cmd copyto ${{ }} cmd rsyncto ${{ - clear; tput cup $(($(tput lines)/3)); tput bold - set -f - clear; echo "rsync to where?" - read dest - for x in $fx; do - eval rsync -aAXHv \"$x\" \"$dest\" - done && + clear; tput cup $(($(tput lines)/3)); tput bold + set -f + clear; echo "rsync to where?" + read dest + for x in $fx; do + eval rsync -aAXHv \"$x\" \"$dest\" + done && notify-send "File(s) rsynced." "File(s) copies to $dest." }}