add script bin/rainbow64 because it's cool (requires lolcat)
This commit is contained in:
parent
9b0d9e5744
commit
e7b81669dd
1 changed files with 16 additions and 0 deletions
16
bin/rainbow64
Executable file
16
bin/rainbow64
Executable file
|
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
DEFAULT_DELAY=0.033
|
||||||
|
DELAY=${1:-$DEFAULT_DELAY}
|
||||||
|
|
||||||
|
random_chars() {
|
||||||
|
while true; do
|
||||||
|
COLS=$(tput cols)
|
||||||
|
head -c $COLS /dev/urandom | base64 -w 0 | cut -c1-$COLS
|
||||||
|
sleep $DELAY
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
random_chars | lolcat
|
||||||
|
echo
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue