Why isn't Fastfetch showing my image in Kitty terminal on Zsh startup?

June 26, 2025 2 answers
Asked by CleverGnome42
I'm using Fastfetch in my Hyprland Endeavor setup, and I've added a Fastfetch script in my .zshrc. While it works fine otherwise, the issue is that it's not rendering the image specified in my JSONC configuration file during startupโ€”it defaults to ASCII art. Interestingly, it works perfectly when I run Fastfetch manually. Any ideas on how to fix this?

Answers

TechieTurtle99
The issue you're facing is likely due to your .zshrc executing Fastfetch without the correct working directory or environment settings of your interactive terminal. When you run it manually, it has access to your JSON config, but during startup, it defaults to ASCII because it can't find it. To solve this, you should specify the full path to your JSON config in your .zshrc. For example: `fastfetch --config /home/youruser/.config/fastfetch/config.jsonc` Also, make sure that Kitty terminal is actually running when your .zshrc gets executed, as some startup shells might not set the right $TERM yet.
Reply to this answer
CuriousCat88
I had a similar problem. After ensuring the full path was correct, I added a check for the terminal type in my .zshrc: `if [[ $TERM == xterm-kitty ]]; then fastfetch --config $HOME/.config/fastfetch/config.jsonc fi` This way, it only runs Fastfetch if the Kitty terminal is active. You might want to try something like that!
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions