diff options
Diffstat (limited to '.local/bin/type.sh')
-rwxr-xr-x | .local/bin/type.sh | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/.local/bin/type.sh b/.local/bin/type.sh index b9dbcd7..2d563f3 100755 --- a/.local/bin/type.sh +++ b/.local/bin/type.sh | |||
@@ -1,15 +1,13 @@ | |||
1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
2 | sleep 1 | 2 | sleep 1 |
3 | while read line | 3 | while read -r line; do |
4 | do | 4 | grep -o . <<< "$line" | while read -r a; do |
5 | grep -o . <<<$line | while read a | 5 | sleep 0.$((RANDOM % 3)) |
6 | do | ||
7 | sleep 0.$((RANDOM%3)) | ||
8 | #2>&1 echo -n "${a:- }" | tee /dev/tty | 6 | #2>&1 echo -n "${a:- }" | tee /dev/tty |
9 | echo -n "${a:- }" | tee /dev/tty | 7 | echo -n "${a:- }" | tee /dev/tty |
10 | done | 8 | done |
11 | sleep 0.$((RANDOM%7)) | 9 | sleep 0.$((RANDOM % 7)) |
12 | 1>&2 echo -ne $"\n" | 10 | echo 1>&2 -ne $"\n" |
13 | echo | 11 | echo |
14 | sleep 1.0 | 12 | sleep 1.0 |
15 | done | 13 | done |