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")
|
dst_file=$(mktemp "$TMPDIR/.nnnXXXXXX")
|
||||||
|
|
||||||
if [ -s "$selection" ]; then
|
if [ -s "$selection" ]; then
|
||||||
printf "Rename 'c'urrent / 's'election? "
|
resp="s"
|
||||||
read -r resp
|
else
|
||||||
|
resp="c"
|
||||||
if ! [ "$resp" = "c" ] && ! [ "$resp" = "s" ]; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$resp" = "s" ]; then
|
if [ "$resp" = "s" ]; then
|
||||||
|
|
Loading…
Reference in a new issue