Closed
Description
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
System information
Irrelevant.
Features built-in
❯ fastfetch --list-features
threads
vulkan
imagemagick7
chafa
zlib
sqlite3