This is a small script inspired by this project, but since the output depends heavily on the font of your terminal, I decided to make a script that displays a PNG image of the Pokémon. I also made the script work without downloading anything in any other directories.
Important: This script requires Kitty, iTerm2 or Chafa with a compatible terminal emulator.
In addition, you will also need:
- Python
- If you are using iTerm2, you will need to install imgcat by clicking iTerm2 > Install Shell Integration
You will need to run pokimg:
Printing out a random pokemon:
pokimgPrinting out a specific pokemon:
pokimg -n pikachuPrinting out a random pokemon from generation 1:
pokimg -g 1Printing out a random pokemon from generations 1,3 and 5:
pokimg -g 1 3 5Printing out a random pokemon from generations 1-3
pokimg -g 1-3Printing list of all pokemon names.
pokimg -lYou can display a random pokemon whenever a terminal gets launched by adding the $HOME/pokimg/pokimg to your .bashrc or config.fish or .zshrc.
These are some of the features I am thinking of adding:
Specify generation to printPrint a specific pokemonPrint list of all pokemon namesAdd help flag for the program- Choose upscale factor
