Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kd5bjo
on March 5, 2020
|
parent
|
context
|
favorite
| on:
Clear Your Terminal in Style
You changed the probability here from 10% to 90% by inverting the test.
athorax
on March 5, 2020
[–]
True, you can just invert: alias clear='if ! (( RANDOM % 10 )); then timeout 3 cmatrix; clear; else clear; fi'
jgtrosh
on March 5, 2020
|
parent
[–]
((RANDOM % 10)) || timeout 3 cmatrix ; clear
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: