Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Run last command as root.
sudo-command-line() { [[ -z $BUFFER ]] && zle up-history [[ $BUFFER != sudo\ * ]] && BUFFER="sudo $BUFFER" } zle -N sudo-command-line bindkey "^Os" sudo-command-line
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
(I doesn't use read-line it has it's own line editor)
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