From 8d6acddea6841f9dde434805911d0db8fb60dec1 Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Sat, 4 Jun 2022 14:26:36 -0700 Subject: [PATCH] make yes default option autoplay prompt --- ani-cli | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ani-cli b/ani-cli index 13a2933..ff4c897 100755 --- a/ani-cli +++ b/ani-cli @@ -763,8 +763,9 @@ continue_watching() { -p "Continue watching?" -window-title 'aniwrapper' <<< "Yes|No") else inf "Continue watching $selection_id?" - prompt "Next episode -> $((episode + 1)) [y/n]" + prompt "Next episode -> $((episode + 1)) [Y/n]" read -r choice + [ -z "$choice" ] && choice="y" fi [[ "$choice" =~ ^(y|Y|Yes)$ ]] && return 0 || return 1