Hacker News new | ask | show | jobs
by guard-of-terra 4687 days ago
I have alt-s in my zsh which does zle beginning-of-line; zle -U "sudo "

Also it's up, home, "sudo "

1 comments

I 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).

Note 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)
> escape \000\040

in my screenrc changes this to 'CTRL+spacebar', which I find much more sensible.