Skip to content

[BUG] Unexpected display of type "shell" #1772

Closed
@Cyame

Description

@Cyame

Read the FAQ first

  • I have checked the FAQ but the issue is not covered

Description

I'm trying to setup the fastfetch in my .zshrc profile so once I launch the terminal session I could see the system stats. It's really good but I sometimes need to work in the network without public internet connection, and at the time I use terminal it will stucked since I configured 'publicip' in my jsonc.

So I figured out a way to handle it by using gtimeout in mac os which set a timeout interval if it got timeout, I exit and use another config without network connection. The snippet of zshrc is as follows:

gtimeout 5s fastfetch -c ~/.config/fastfetch/anime.jsonc
EXIT_CODE=$?

if [ $EXIT_CODE -eq 124 ]; then
    fastfetch -c ~/.config/fastfetch/anime-local.jsonc
fi
echo

but when I did so, everytime I show fastfetch under normal internet connection, the "shell" section will be like:

└  : gtimeout

instead of a correct zsh version (zsh 5.9).

Version used

fastfetch 2.43.0 (aarch64)

Bug prevalence

Always

Regression

Not sure

Installation

Package manager

Package manager

brew

Screenshots

No response

Configuration

❯ cat ~/.config/fastfetch/anime.jsonc
//    ______           __  ______      __ 
//   / ____/___ ______/ /_/ ____/___ _/ /_
//  / /_  / __ `/ ___/ __/ /   / __ `/ __/
// / __/ / /_/ (__  ) /_/ /___/ /_/ / /_  
///_/    \__,_/____/\__/\____/\__,_/\__/  
//  https://github.com/m3tozz/FastCat
{
    "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
    "logo": {
        "source": "~/.config/fastfetch/ascii.txt",
            "color": {
            "1": "0",
        }
    },
    "modules": [
          "break",
          "break",
         {
            "type": "os",
            "key": "OS   ",
            "keyColor": "31",  // = color1
        },
        {
            "type": "kernel",
            "key": " ├  ",
            "keyColor": "31",
        },
        {
            "type": "packages",
            "format": "{} (pacman)",
            "key": " ├ 󰏖 ",
            "keyColor": "31",  
        },
        {
            "type": "shell",
            "key": " └  ",
            "keyColor": "31", 
        },
        "break",
        {
            "type": "wm",
            "key": "WM   ",
            "keyColor": "32", 
        },
        {
            "type": "wmtheme",
            "key": " ├ 󰉼 ",
            "keyColor": "32",
        },
        {
            "type": "icons",
            "key": " ├ 󰀻 ",
            "keyColor": "32",
        },
        {
            "type": "cursor",
            "key": " ├  ",
            "keyColor": "32", 
        },
        {
            "type": "terminal",
            "key": " ├  ",
            "keyColor": "32",
        },
        {
            "type": "terminalfont",
            "key": " └  ",
            "keyColor": "32", 
        },
        "break",
        {
            "type": "cpu",
            "format": "{1} ({3}) @ {7} GHz",
            "key": "CPU  ",
            "keyColor": "33",
        },
        {
            "type": "gpu",
            "format": "{1} {2} @ {12} GHz",            
            "key": " ├ 󰢮 ",
            "keyColor": "33",
        },
        {
            "type": "memory",
            "key": " ├  ",
            "keyColor": "33",
        },
        {
            "type": "swap",
            "key": " ├ 󰓡 ",
            "keyColor": "33",
        },
        {
            "type": "disk",
            "key": " ├ 󰋊 ",
            "keyColor": "33",
        },
        {
            "type": "monitor",
            "key": " └  ",
            "keyColor": "33",
        },
        "break",
        {
            "type": "publicip",
            "key": "IP   ",
            "timeout": 1000,
            "keyColor": "34",
        },
        {
            "type": "localip",
            "showAllIps": true,
            "key": " ├  ",
            "keyColor": "34",
        },
        {
            "type": "wifi",
            "key": " ├  ",
            "keyColor": "34",
        },
        {
            "type": "datetime",
            "key": " ├  ",
            "keyColor": "34",
        },
        {
            "type": "weather",
            "key": " ├  ",
            "keyColor": "34",
        },
        {
            "type": "locale",
            "key": " └  ",
            "keyColor": "34",
        },
        "break",
        "break",
        ]
}

System information

Irrelevant.

Features built-in

❯ fastfetch --list-features
threads
vulkan
imagemagick7
chafa
zlib
sqlite3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions