News for hackers. Stuff that matters.
Re:Fish 2.0 shell beta by GhotiFish on Friday April 19, 2013 @12:50PM (#5577542)
the reasons are legion.

Up and ctrl A are independent key strokes. They precede typing sudo, which is a logical train of thought ("Oh I forgot sudo, i should of typed sudo and then x").

! is a commonly used key in English language, and pressing it twice is fast, where as getting two desperate keys is not.

After the proposed action, you end up here:

  sudo |something fishy
as opposed to here:

  sudo something fishy|
which prevents you from writing an addendum to that command.

This sounds small, but I was doing what you suggested before I found out I could say "sudo !!" I immediately switched when I found out, and it's now a very common idiom for me. I switched from "up home sudo space" to "sudo space bang bang" for all the reasons described above.

There are no comments on this comment yet.