24 ms·
If you use zsh and are willing to source your scripts you can do print -z $command And the command will appear on your cli as if you had written it. I don'
by godelski 2y ago
If you use zsh and are willing to source your scripts you can do
print -z $command
And the command will appear on your cli as if you had written it.
I don't think you can do this in bash. Interestingly, this is something that seems quite difficult to both google and ask GPT for help. Both get confused and are thinking different questions are being asked. Probably because there are similar more common questions but the subtleties of possible wordings makes it difficult to differentiate.