how to display a fallback logo when the one set in config isn't supported by terminal? #1109
Answered
by
CarterLi
GrassBlock1
asked this question in
Q&A
Replies: 1 comment 3 replies
-
function fish_greeting
if [ $TERM = xterm-kitty ]
fastfetch -c $__fish_config_dir/motd.jsonc
else
fastfetch -c $__fish_config_dir/motd.jsonc --logo-type builtin
end
end |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
GrassBlock1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I used fastfetch in my fish motd and the logo is a png image like this:
It's supported by kitty, but when I switched to terminals like alacritty and the one in IntelliJ idea(which seems to be xterm-256color) and the image logo are not supported:
And this is my config for logos in fastfetch:
and my greeting section
config.fish
:So is there any way to easily set a logo as a fallback? I had searched issues and discussions and seems there's no similar situations for this.
thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions