diff options
author | Yigit Sever | 2021-11-04 12:25:04 +0300 |
---|---|---|
committer | Yigit Sever | 2021-11-04 12:25:04 +0300 |
commit | a0bb023d782dd2d8703670d560b5ccd8d25d640e (patch) | |
tree | 1c11a649e2201e1458c4011894086f49da5ded15 /.local/bin/type.sh | |
parent | 93cdb13eada4e803fb4db71fb581d9e4a03d2119 (diff) | |
download | dotfiles-a0bb023d782dd2d8703670d560b5ccd8d25d640e.tar.gz dotfiles-a0bb023d782dd2d8703670d560b5ccd8d25d640e.tar.bz2 dotfiles-a0bb023d782dd2d8703670d560b5ccd8d25d640e.zip |
bins: shfmt, weasel suite, spark
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 |