News for hackers. Stuff that matters.
Re:Vim prank: alias vim='vim -y' by adwn on Friday January 07, 2022 @09:25AM (#29839426)
I don't get it. What's so bad/annoying about sleeping for 10 milliseconds whenever a new shell is opened? I don't think anyone would notice. "sleep 1000", on the other hand...

EDIT: I misunderstood it as executing

   echo sleep 0.01 >> ~/.bashrc
once instead of adding that line to .bashrc – even though that's exactly what you wrote...
Re:Vim prank: alias vim='vim -y' by longwave on Friday January 07, 2022 @09:35AM (#29839543)
It appends another sleep each time you start a new shell, so it subtly slows down over time.
Re:Vim prank: alias vim='vim -y' by VHRanger on Friday January 07, 2022 @10:07AM (#29839944)
wouldn't it do so exponentially?

The first time it does it once, the second time the statement is there twice so it does it twice, then 4, 8, 16, etc. ?

Re:Vim prank: alias vim='vim -y' by usrbinbash on Friday January 07, 2022 @10:30AM (#29840252)
No, because;

    echo sleep 0.01 >> ~/.bashrc
adds this to .bashrc;

    sleep 0.01
It doesn't add itself, so the sleep tie grows linear by 0.01sec each time a shell is opened.
Re:Vim prank: alias vim='vim -y' by djrogers on Friday January 07, 2022 @10:18AM (#29840075)
No, the entire statement isn't added each time, only the sleep portion.
Re:Vim prank: alias vim='vim -y' by Tesl on Friday January 07, 2022 @10:23AM (#29840154)
the third time the statement is there three times ..
Re:Vim prank: alias vim='vim -y' by _flux on Friday January 07, 2022 @09:34AM (#29839533)
The idea is to add the 'echo ..' to the .bashrc, not just run the command once.
Re:Vim prank: alias vim='vim -y' by adwn on Friday January 07, 2022 @09:38AM (#29839571)
Ah, now I get it. Thanks! That's evil, indeed.
Re:Vim prank: alias vim='vim -y' by cto_of_antifa on Friday January 07, 2022 @09:29AM (#29839473)
Wouldn't it add another ten Ms every time you opened a new terminal session?
Re:Vim prank: alias vim='vim -y' by unionpivo on Friday January 07, 2022 @09:50AM (#29839702)
yeah its windows 95 simulator :)