←back to thread

131 points tomschafer | 7 comments | | HN request time: 0.217s | source | bottom
1. 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 #
2. ◴[] No.42149026[source]
3. dmd ◴[] No.42149043[source]
That is very useful. What does it have to do with this?
replies(1): >>42149078 #
4. 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 #
5. dmd ◴[] No.42149103{3}[source]
Ah, so you didn't click through and actually see what this tool is, you just read the title.
replies(1): >>42149135 #
6. bloopernova ◴[] No.42149135{4}[source]
I did click through, but misinterpreted what it was doing. Apologies, I'm "multitasking".
7. indentit ◴[] No.42163452[source]
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 :)