Displays a random Pokémon from the PokéAPI in your terminal.
- Clone the repository.
- Run the following command in the root directory of the repository to build for your system:
go build
- Run the following command to display a random Pokémon:
./pokefetch # or pokefetch.exe on Windows
-id
: The ID of the Pokémon to display (default: random).- If this is provided, it takes precedence over the
-name
flag.
- If this is provided, it takes precedence over the
-name
: The name of the Pokémon to display (default: random).- If both
-id
and-name
are provided,-id
takes precedence.
- If both
-shiny
: The chance of the Pokémon being shiny (default: 0.5).- This is a float between 0 and 1.
You can add this to your shell's startup script to display a random Pokémon every time you open a new terminal window.
For example, for .zshrc
:
# Display a random Pokémon on terminal startup (but not in VSCode)
if [ "$TERM_PROGRAM" != "vscode" ]
then
.local/bin/pokefetch
fi