antekone is a user on mstdn.io. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

If you're using bash or zsh and you don't know the ^X^E shortcut, learn it now.

First, ensure you have a valid `EDITOR` environment variable set to your favourite editor (like vim or emacs).

Second, enter some command, but don't hit enter.

Third, use Ctrl+X Ctrl+E and learn that you can use your editor to modify the command before running it in the shell.

This is pretty helpful if you're trying to edit a long command line.

@antekone Do you know what the binding is if you're using vi input mode?

I don't need it as frequently because of vi mode but it would still be nice from time to time.

antekone @antekone

@minego @tomasino

Try setting this first:

bindkey -M vicmd v edit-command-line

They <esc>v should work.

· Web · 1 · 3