Created
May 20, 2016 16:07
-
-
Save mateor/9ff148797098501fb9ba0b6688770580 to your computer and use it in GitHub Desktop.
bash profile to ~slowly cat a file. Good for ASCII art burns.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function print_slow(){ | |
IFS=$'\n' && array=($(<$1)) | |
for line in ${array[@]}; | |
do echo $line | |
sleep .05 | |
done | |
} | |
# If you have a cowboy file (like I do!) | |
alias cowboy='print_slow ~/dev/snippets/whoa_cowboy.sh' |
Author
mateor
commented
May 20, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment