4 ms·
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 def
by bloopernova 2y 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.
- deleted 2y ago[deleted]
- dmd 2y agoThat is very useful. What does it have to do with this?
- bloopernova 2y agoIf you want to search and replace a command line, there's tools to do it in your favourite editor.
- dmd 2y agoAh, so you didn't click through and actually see what this tool is, you just read the title.
- bloopernova 2y agoI did click through, but misinterpreted what it was doing. Apologies, I'm "multitasking".
- indentit 2y agoI 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 https://unix.stackexchange.com/a/34251/152147 Thanks for sharing, learnt something new :)