neofetch icon indicating copy to clipboard operation
neofetch copied to clipboard

Failed to start when executed from .zshrc (everytime teminal opens)

Open aldyadk opened this issue 3 years ago • 2 comments

Description

Failed to start initially when executed from .zshrc (everytime teminal opens), but working fine after that (manual execution)

`++ stty size stty: 'standard input': Inappropriate ioctl for device /usr/bin/neofetch: line 4033: term_width / columns: division by 0 (error token is "columns")

  • printf '\e[?25h\e[?7h'`

Neofetch version

Neofetch 7.0.0

Screenshot

err

pass

Config file

https://gist.github.com/aldyadk/ed91fb2ef1b4bd6c567c999733fe75ef

Verbose log

https://pastebin.com/wuWxXa1a

aldyadk avatar Dec 20 '21 05:12 aldyadk

Hi, I have almost the same problem on MacOS, all iw working fine when I start neofetch from command line (with zsh shell):

image

When I try to start neofetch with my .zshrc, the program cannot get the terminal resolution (iterm2):

image

Ask me if you need more logs / infos.

romain-berthe avatar Feb 23 '22 14:02 romain-berthe

I have the same problem. image

but if i open it manually works it correctly.

dvfer avatar Jul 31 '22 19:07 dvfer

I solved the problem by commenting out some lines including 'p10k-instant-prompt'.

partlyjadedyouth avatar Nov 28 '22 08:11 partlyjadedyouth