from Hacker News

Show HN: ALL_CAPS => sudo all_caps (Bash)

by al_form2000 on 10/21/19, 8:48 AM with 25 comments

  • by nfriedly on 10/21/19, 1:33 PM

    FYI, in bash, "sudo !!" re-runs the previous command with sudo.
  • by philshem on 10/21/19, 7:00 PM

  • by hackbinary on 10/21/19, 2:36 PM

    up arrow

    ctrl-a (readline command for beginning of line)

    type "sudo"

    Also, ctrl-w is really useful. Heck, learning the readline editing keyboard in general is really useful.

  • by rudiv on 10/21/19, 3:28 PM

    Remember, all caps when you spell the man name.
  • by timeattack on 10/21/19, 10:54 AM

    Most often case is when you forget to type sudo before command. This implementation propose to re-type executable name in all-caps (or type it in all-caps beforehand).

    More efficient approach is to use keybinding like Ctrl+T to prepend sudo to the current command (or to the previous command if current is empty).

  • by sonofgod on 10/21/19, 3:53 PM

    This is hideous. Congratulations! :D
  • by gnulinux on 10/21/19, 2:29 PM

    Isn't typing 'sudo yum' faster than 'YUM'?
  • by taejo on 10/21/19, 1:53 PM

    Did some kind of automoderation break the title by changing ALL_CAPS to All_caps?