Another good one is "\C-x\C-e": edit-and-execute-command.
Just found out about this one recently from a coworker. It opens up $EDITOR for writing commands. I’ve been using it to edit stuff with a bunch of arguments so I can spread them across multiple lines and rearrange things more easily.
This is the greatest think I’ve learned in … a while.
I don’t write a lot of one-off scripts and tend to just have a bunch of commands joined on one line with semicolons. This will help a bunch.
Another good one is
"\C-x\C-e": edit-and-execute-command
.Just found out about this one recently from a coworker. It opens up
$EDITOR
for writing commands. I’ve been using it to edit stuff with a bunch of arguments so I can spread them across multiple lines and rearrange things more easily.This is the greatest think I’ve learned in … a while. I don’t write a lot of one-off scripts and tend to just have a bunch of commands joined on one line with semicolons. This will help a bunch.
Thanks, so much!
Nice!
I wish I had this when I started out, good work!
Nice one, thank you! Minor grammatical issue “…that the readline library give you in…” give should be gives.
Aside; I have this in my .zshrc;
Thanks, updated.