aboutsummaryrefslogtreecommitdiff
path: root/prompt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'prompt.sh')
-rwxr-xr-xprompt.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/prompt.sh b/prompt.sh
index d0eae46..b9e8fbd 100755
--- a/prompt.sh
+++ b/prompt.sh
@@ -2,5 +2,4 @@
# A dmenu binary prompt script.
# Gives a dmenu prompt labeled with $1 to perform command $2.
-[ $(echo -e "No\nYes" | dmenu -i -p "$1") \
-== "Yes" ] && $2
+[ $(printf "No\nYes" | dmenu -l 2 -p "$1") == "Yes" ] && $2