News for hackers. Stuff that matters.
Re:Run last command as root by mrud on Thursday December 16, 2010 @04:39PM (#2013843)
Have a look at zsh, you can execute your current command as root quite easy. Put

  sudo-command-line() {
      [[ -z $BUFFER ]] && zle up-history
      [[ $BUFFER != sudo\ * ]] && BUFFER="sudo $BUFFER"
  }   
  zle -N sudo-command-line
  bindkey "^Os" sudo-command-line
into your zshrc, enter the command and press ctrl+o s et voila ;0

For more cool stuff regarding zsh have a look at http://grml.org/zsh/ or for other nice keybindings http://grml.org/zsh/grmlzshrc.html

Re:Run last command as root by pyre on Friday December 17, 2010 @12:15AM (#2015282)
zle = zsh line editor

(I doesn't use read-line it has it's own line editor)