4 ms·
!! is not at all pointless, "sudo !!" is much easier that Up, Ctrl-a, "sudo ".
by dr4g0n 13y ago
!! is not at all pointless, "sudo !!" is much easier that Up, Ctrl-a, "sudo ".
- guard-of-terra 13y agoI have alt-s in my zsh which does zle beginning-of-line; zle -U "sudo " Also it's up, home, "sudo "
- dr4g0n 13y agoI may have to steal that alias, good tip. Ctrl-a/Ctrl-e are equivalent to Home/End (unless you're inside a screen session, which was a terrible choice of binding on their part).
- phaemon 13y agoNote that these aren't bash things. They're the emacs bindings for readline, so they work with anything that uses readline (like the mysql client). You can set them to the vi ones instead with: set -o vi ..and they do work with screen ;-) (0 for start, $ for end)
- chimeracoder 13y ago> escape \000\040 in my screenrc changes this to 'CTRL+spacebar', which I find much more sensible.
- xxpor 13y agoor sudo ESC-. which inserts the last word from the last command.