everyone. It's a little difficult to explain what I want to do.
I want to create a script 'example', which can input long commands for you after you run it with short parameters. For example,
$ example server # I input this line manually $ ssh email@example.com # This line is automatically generated by the above command
So that I can edit the command line at the current line.
I am using shell
ZSH. And I've tried something like
history but failed at the end.