Skip to content

Display a random Pokémon from the PokéAPI in your terminal.

Notifications You must be signed in to change notification settings

DuroCodes/pokefetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PokéFetch

Displays a random Pokémon from the PokéAPI in your terminal.

Usage

  1. Clone the repository.
  2. Run the following command in the root directory of the repository to build for your system:
go build
  1. Run the following command to display a random Pokémon:
./pokefetch # or pokefetch.exe on Windows

Flags

  • -id: The ID of the Pokémon to display (default: random).
    • If this is provided, it takes precedence over the -name flag.
  • -name: The name of the Pokémon to display (default: random).
    • If both -id and -name are provided, -id takes precedence.
  • -shiny: The chance of the Pokémon being shiny (default: 0.5).
    • This is a float between 0 and 1.

Terminal Startup

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

About

Display a random Pokémon from the PokéAPI in your terminal.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages