From 1a2dca31bc7bb35f88b705ba3cd70d9ee2f98d01 Mon Sep 17 00:00:00 2001 From: FollieHiyuki Date: Sat, 1 May 2021 18:05:18 +0300 Subject: [PATCH] nnn: update .nmv --- home/.config/nnn/plugins/.nmv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.config/nnn/plugins/.nmv b/home/.config/nnn/plugins/.nmv index 7dc1450..254505f 100755 --- a/home/.config/nnn/plugins/.nmv +++ b/home/.config/nnn/plugins/.nmv @@ -120,7 +120,7 @@ while read -r num name; do if [ ! -d "$dir" ] && ! mkdir -p "$dir"; then printf "%s: failed to create directory tree %s\n" "$0" "$dir" > /dev/stderr exit_status=1 - elif ! mv "$src" "$name"; then + elif ! mv -i "$src" "$name"; then printf "%s: failed to rename %s to %s: %s\n" "$0" "$name" "$tmp" "$!" > /dev/stderr exit_status=1 else