this post was submitted on 06 Apr 2025
18 points (100.0% liked)

Linux Questions

1602 readers
18 users here now

Linux questions Rules (in addition of the Lemmy.zip rules)

Tips for giving and receiving help

Any rule violations will result in disciplinary actions

founded 2 years ago
MODERATORS
 

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 and to the output of what i type next?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 2 weeks ago* (last edited 2 weeks ago)

this sounds like something you can do by setting up a command alias as well:

alias [pokemon name] = '[command and options go here]'

i.e. alias update='sudo apt-get update && sudo apt-get upgrade -y'

or in your case: alias pikachu = 'krabby name pikachu'