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

Linux Questions

1569 readers
1 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
[–] sudo_aptget_karma@lemmy.world 6 points 1 day ago* (last edited 1 day 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'