3 ms·
zsh: parse error near `)'
by nusl 2y ago
zsh: parse error near `)'
- deleted 2y ago[deleted]
- deleted 2y ago[deleted]
- unforswearing 2y agoalias snow='for ((I=0;J=--I;)); do clear; for ((D=LINES;S=++J*3%COLUMNS,--D;)); do printf %*s.\\n $S;done;sleep .1;done'
- andelink 2y agoNeed a space after each `for` keyword. A while back there was a whole post about making it snow in your terminal [1]. I think my favorite was [2]: while sleep 0.1; do printf "%-$(( ( RANDOM % `tput cols` ) - 1))s\e[0;$(( 30 + ($RANDOM % 8) ))m*\n" ; done [1] https://news.ycombinator.com/item?id=38652339 https://news.ycombinator.com/item?id=38652339 [2] https://news.ycombinator.com/item?id=38654884 https://news.ycombinator.com/item?id=38654884