summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-01-05 00:16:47 +0200
committerDylan Araps <dylan.araps@gmail.com>2019-01-05 00:16:47 +0200
commit5cd7c0ecc2bd384f3d9220503d0a9581dc4a820f (patch)
tree63f73273e62b571472570c8c9856a15b539bc561
parentfcaea000170b00a757e183a8dd19266aceb78ffe (diff)
cleanup
-rwxr-xr-xfff3
1 files changed, 1 insertions, 2 deletions
diff --git a/fff b/fff
index 98fa501..738b702 100755
--- a/fff
+++ b/fff
@@ -75,8 +75,7 @@ key() {
.) a=(u s); shopt -"${a[((h=h>0?0:++h))]}" dotglob
l=0; refresh; get_dir ;;
- y) mark; pr=(cp -rt) ;;
- m) mark; pr=(mv -t) ;;
+ y|m) mark; [[ $1 == y ]] && pr=(cp -rt) || pr=(mv -t) ;;
p) [[ ${co[*]} ]] && "${pr[@]}" "$PWD" "${co[@]}" && {
refresh; get_dir; co=(); copwd=; } ;;
c) co=() ;;