News for hackers. Stuff that matters.
Re:Show HN: Shelly: Write Terminal Commands in English by alentred on Tuesday January 16, 2024 @08:58AM (#39013311)
zsh can replace special variables like `!!` and `!:1` inline when you hit Tab. Or, if you hit Enter, it won't execute the command itself but prepare a new prompt pre-filled with the same command and all special variables substituted to their values. I don't really know how it works in zsh (bash for example doesn't warn you and just executes the command right away with the actual values in place), but anyway it may be more seamless than opening an editor.

There are no comments on this comment yet.