diff --git a/nekofetch b/nekofetch index 7aafdd3..eb6d9b5 100755 --- a/nekofetch +++ b/nekofetch @@ -23,7 +23,11 @@ echo "Using height $height" url=$(curl -fsSL "$imgurl" | jq -r ".url") curl -fsSLo "$tmpfile.jpg" "$url" -jp2a --height="$height" "$tmpfile.jpg" > "$tmpfile" -neofetch --source "$tmpfile" +if [ "$TERM" = "xterm-kitty" ]; then + neofetch --kitty "$tmpfile.jpg" +else + jp2a --height="$height" "$tmpfile.jpg" > "$tmpfile" + neofetch --source "$tmpfile" +fi rm "$tmpfile" "$tmpfile.jpg"