diff --git a/.config/bash/module/name.sh b/.config/bash/module/name.sh index 1683013..81cc0f4 100644 --- a/.config/bash/module/name.sh +++ b/.config/bash/module/name.sh @@ -345,7 +345,7 @@ name_prefix() # All targets by default. if [[ "${targets}" = "" ]]; then - targets=([^.]*) + targets=(${old}*) total=${#targets[@]} fi @@ -393,7 +393,7 @@ name_postfix() # All targets by default. if [[ "${targets}" = "" ]]; then - targets=([^.]*) + targets=(*${old}) total=${#targets[@]} fi @@ -403,7 +403,7 @@ name_postfix() ((count++)) # Create new name. - local new_name="${new}${target%$old}" + local new_name="${target%$old}${new}" # Prepare status. local status="[${count}/${total}] ${target} -> ${new_name}"