How to edit long bash command
When writing long bash command that could use some indentation, just press CTRL+X CTRL+E
which will open the current command in your $EDITOR
. After saving and quitting the editor, the content is pulled back to bash.
Written by Ahmed Al Hafoudh
Related protips
1 Response
Don't forget the other "readline" meta keys, such as CTRL-A and CTRL-E that move you to the begining and end of the line.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#