Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
devnonymous
· 10y ago · 0 comments
Since you know how to do this in vi, do a Ctrl+x Ctrl+e to open the command in $EDITOR. Closing the editor will execute whatever was edited in it.
Comments
[–]
philsnow
10y ago
There's also a shell builtin `fc` (mnemonic: fix command) that does this.