config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 429bf1feed601d9274efa2a67616f37991274b1d
parent 9f04c2c5a3acb2ec664a028046d4f913e0c2abd4
Author: jacob@thinkpad <jacobouno@protonmail.com>
Date:   Fri, 26 Jun 2020 23:03:42 -0700

Take only one confirmation in confirm function

Diffstat:
Msxiv/.config/sxiv/exec/key-handler | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sxiv/.config/sxiv/exec/key-handler b/sxiv/.config/sxiv/exec/key-handler @@ -4,7 +4,9 @@ set -e set -x confirm() { - answer=$(printf "no\nyes" | dmenu) && [ "$answer" = "yes" ] + if [ -z $answer ]; then + answer=$(printf "no\nyes" | dmenu) && [ "$answer" = "yes" ] + fi } while read file; do