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

0
9
Asked By CleverGnome42 On

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?

2 Answers

Answered By CuriousCat88 On

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!

Answered By TechieTurtle99 On

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.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.