Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you forget a flag, can't you move your cursor and add the flag? No need to type the whole command again


If your terminal is using readline/emacs bindings, Meta + B will go backward one word. Ctrl + a will move the cursor to the beginning of the line. There are of course equivalents if your terminal is configured to use the vi/vim keybinds.

On macOS, you can hold Option and click to emulate the correct amount of left or right arrow presses to move the cursor.

So, no, you don't need to type the whole command again. I would personally probably hit Ctrl + a and move my cursor forward a few words to where I need to add the flag.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: