←back to thread

131 points tomschafer | 2 comments | | HN request time: 0.401s | source
Show context
bloopernova ◴[] No.42148959[source]
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.

replies(3): >>42149026 #>>42149043 #>>42163452 #
dmd ◴[] No.42149043[source]
That is very useful. What does it have to do with this?
replies(1): >>42149078 #
bloopernova ◴[] No.42149078[source]
If you want to search and replace a command line, there's tools to do it in your favourite editor.
replies(1): >>42149103 #
1. dmd ◴[] No.42149103[source]
Ah, so you didn't click through and actually see what this tool is, you just read the title.
replies(1): >>42149135 #
2. bloopernova ◴[] No.42149135[source]
I did click through, but misinterpreted what it was doing. Apologies, I'm "multitasking".