From 40922deea791155e1b7748e9ae81f5f6f5f679c8 Mon Sep 17 00:00:00 2001 From: Doman Date: Thu, 3 Feb 2022 14:01:03 +0100 Subject: [PATCH] example updated --- README.md | 5 ++--- doc/fasttyper.sh | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index dae7698..db21955 100644 --- a/README.md +++ b/README.md @@ -49,13 +49,12 @@ function ff() { [[ ! -f $sfile ]] && curl -s $source_path | python3 -c "import sys, json; print('\n'.join(json.load(sys.stdin)['words']))" > $sfile while true do - shuf -n $amount $sfile | python3 -m fasttyper - sleep 1 + shuf -n $amount $sfile | python3 -m fasttyper || break done } ``` `ff 50 english_1k` -This shell function shuffles N words from cached word list, and if given word list doesnt exist it download's it. It runs in loop, but does sleep 1s after each taken test (or interrupted!) so to exit loop just use CTRL+C twice: once to exit fasttyper, second time to exit loop on sleep. +This shell function shuffles N words from cached word list, and if given word list doesnt exist it download's it. It runs in loop, but does exit from it if you exit fasttyper with CTRL+C. The above script is avalible for download from doc folder. diff --git a/doc/fasttyper.sh b/doc/fasttyper.sh index ff6e5f4..afa5a70 100644 --- a/doc/fasttyper.sh +++ b/doc/fasttyper.sh @@ -8,7 +8,6 @@ function ff() { [[ ! -f $sfile ]] && curl -s $source_path | python3 -c "import sys, json; print('\n'.join(json.load(sys.stdin)['words']))" > $sfile while true do - shuf -n $amount $sfile | python3 -m fasttyper - sleep 1 + shuf -n $amount $sfile | python3 -m fasttyper || break done }