Clear Your Terminal in Style
adammusciano.com
Clear Your Terminal in Style
1–10 of 133 posts
Re: Clear Your Terminal in Style
#2Re: Clear Your Terminal in Style
#3It may not be stylish, but I was very happy when I realised that CTRL+L will clear the screen, decent speed up if you're doing a load of demos and want the cursor at the top of the terminal
Re: Clear Your Terminal in Style
#4If it doesn't, then the randomness will make it a dopamine hit / that somehow makes your brain feel rewarded. Which will lead to more terminal clearing. Not sure if that's the thing you want :-)
I'd stick with CTRL+L instead.
Re: Clear Your Terminal in Style
#5Re: Clear Your Terminal in Style
#6 [ $[$RANDOM % 10] = 0 ]
...you can use double-parentheses. Therein, you can omit the `$` on variables and, remember, the expression evaluates to true for any non-zero value. Thus, instead: (( RANDOM % 10 ))Re: Clear Your Terminal in Style
#7I've just used alias c=clear in my .bashrc and never looked back. Not even Ctrl+L feels as convenient as c+Enter
doesn't only clear the screen, but also escape any "broken" terminal configuration such as output of a binary on the tty
Re: Clear Your Terminal in Style
#8Re: Clear Your Terminal in Style
#9But yes, most of the animations are quite a bit too long. I wouldn't mind a quick Star Wars diagonal wipe, though, to be honest.
Re: Clear Your Terminal in Style
#10I've just used alias c=clear in my .bashrc and never looked back. Not even Ctrl+L feels as convenient as c+Enter