commit c9c1d0d4547a38bce1c8811fa4edf41e69c0552a parent 7e307bc2ffec54a301aeffd6caf4794e4c6034e7 Author: KlzXS <klzx+github@klzx.cf> Date: Tue, 16 Feb 2021 21:46:56 +0000 Favor selection over current for nmv Diffstat:
| M | plugins/.nmv | | | 9 | +++------ |
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/plugins/.nmv b/plugins/.nmv @@ -27,12 +27,9 @@ exit_status=0 dst_file=$(mktemp "$TMPDIR/.nnnXXXXXX") if [ -s "$selection" ]; then - printf "Rename 'c'urrent / 's'election? " - read -r resp - - if ! [ "$resp" = "c" ] && ! [ "$resp" = "s" ]; then - exit 1 - fi + resp="s" +else + resp="c" fi if [ "$resp" = "s" ]; then