Last Updated: February 25, 2016
·
535
· sheerun

Edit long shell command in editor

In shell, you can press Ctrl+X Ctrl+E and edit current command in your $EDITOR. Alternatively you can learn readline shortcuts.

For ZSH make sure you've installed oh-my-zsh.