mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Merge pull request #857 from KlzXS/batch_rename
Favor selection over current for nmv
This commit is contained in:
commit
4b15535983
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue