I think the real sweet-spot flow is to take this and use bindkey to do inline replacement. Let me fork it and see what I can do.
It's a re-invention really.
Essentially you do (assuming zsh)
$ source how.sh
Then you type your thing at the shell $ add a user bob using modern homectl methods
Then you (in the default, CTRL+X+H) and it does this $ add a user bob using modern homectl methods ... (name of your default model)
... a few seconds pass ...
$ sudo homectl create-user bob
Then you can choose to press enter and run it.https://github.com/kristopolous/how.sh
This is a much more one-and-done approach but 99% of the time I just forget invocation syntax - I'm not actually exploring things deeply.
If you want a "proper" pr, it'd really be a rewrite with two "frontends" - your conversational edit flow and my keystroke invoke.
Honestly they're probably different things.
Here's the prompt engineering I did: https://github.com/ddworken/hishtory/blob/master/shared/ai/a...
Nice to see there's so many options these days. Someone else mentioned "https://atuin.sh/" in this thread - which is also new to me. Keeping up with things is seemingly impossible
shopt -s histappend
shopt -s cmdhist
export HISTCONTROL=ignoreboth
export HISTFILESIZE=-1
export HISTFILE=~/.bash_eternal_history
export HISTSIZE=-1
export HISTTIMEFORMAT="%d/%m/%y %T "
export HISTIGNORE="history:ls:l:ll:pwd:exit:clear"
It's almost a megabyte now... By when did it start to truncate for you?honestly, with these modern systems this shouldn't be a problem any more. I look forward to it.