newline in prompt

This commit is contained in:
Luke Smith 2019-03-31 15:33:20 -04:00
parent 12035bf1d6
commit 5929cd3025
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

2
mw
View File

@ -304,7 +304,7 @@ pick() { \
[ -z "$input" ] && return 1
title="$(echo "$numbered" | grep "$input" | awk '{print $2}')"
[ -z "$title" ] && printf "Invalid response." && return 1
[ -n "$2" ] && printf "Are you sure you want to %s the \`%s\` account?" "$1" "$title" && read -r input && echo "$input" | grep -i "y\(es\)*" >/dev/null
[ -n "$2" ] && printf "Are you sure you want to %s the \`%s\` account?\\n" "$1" "$title" && read -r input && echo "$input" | grep -i "y\(es\)*" >/dev/null
}
delete() { sed -i "