help writing a function or a script.

https://lemmy.one/post/26723347

help writing a function or a script. - Lemmy.one

i’m trying to basically make a shortcut for krabby (see link) so i dont have to type <krabby name (pokemon name)> to see a specified pokemon. basically how can i make a script that passes the <command> and <option> to the output of what i type next?

Do you know about tab autocomplete?

It would probably mean that you can just enter something like

$ kra<TAB> charmander<ENTER>