Comment by bloopernova
9 days ago
A useful feature of bash and zsh is the "edit command". The standard shortcut is "ctrl-x ctrl-e".
It opens the current command line in $EDITOR, which often defaults to vim.
9 days ago
A useful feature of bash and zsh is the "edit command". The standard shortcut is "ctrl-x ctrl-e".
It opens the current command line in $EDITOR, which often defaults to vim.
I tried this out, and nothing happened. Then I discovered that it has to be enabled first, for example by: https://unix.stackexchange.com/a/34251/152147 Thanks for sharing, learnt something new :)
That is very useful. What does it have to do with this?
If you want to search and replace a command line, there's tools to do it in your favourite editor.
Ah, so you didn't click through and actually see what this tool is, you just read the title.
1 reply →