From f36410f05f17b78bb3cf18e8547cc2030347c70b Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Tue, 15 Oct 2024 19:53:08 +0200 Subject: [PATCH] nixy loop prompt fix --- home/scripts/nixy/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/home/scripts/nixy/default.nix b/home/scripts/nixy/default.nix index f0f9214..f982a1d 100644 --- a/home/scripts/nixy/default.nix +++ b/home/scripts/nixy/default.nix @@ -65,8 +65,9 @@ let elif [[ $1 == "loop" ]];then while true; do nixy - read -p "Press enter to continue, e to exit" -n 1 REPLY - echo + echo "Press enter to continue, e to exit" + read -n 1 REPLY + clear [[ $REPLY == "e" ]] && exit 0 done else