commit 5929cd30254b26ed886fab508904c48d1b687a1e parent 12035bf1d69860b89ffd4a113ee5804b2f107120 Author: Luke Smith <luke@lukesmith.xyz> Date: Sun, 31 Mar 2019 15:33:20 -0400 newline in prompt Diffstat:
M | mw | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mw b/mw @@ -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 "