mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Favor selection over current for nmv
This commit is contained in:
parent
7e307bc2ff
commit
c9c1d0d454
|
@ -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