Closed sultaz closed 2 months ago
It was an issue with the p10k theme
_gitstatus_daemon_p9k_:12: command not found: uname
This is the culprit. Something in your zsh startup files breaks PATH
. Try adding these lines at the very top and at the very bottom of .zshrc
and see what gets printed when you open a new terminal tab.
print -r -- '===[ TOP ]==='
print -rC1 -- $path
which uname
...
print -r -- '===[ BOTTOM ]==='
print -rC1 -- $path
which uname
I found the culprit. I was a bonehead. I was setting up a different terminal emulator following someone else's guide and rather then type it out myself I copied and pasted from the guide and didn't realize this was being added to my .zshrc file.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi
I was already using P10k with no problems and didn't know what had actually been added during the process. The problem disappeared as soon as I commented this part out.
I'm glad you've found a solution.
If I open another terminal window and then open a second window, even in tmux I receive the following error message. `[ERROR]: gitstatus failed to initialize.
Zsh log (/private/var/folders/wh/wlh6mcwd5n12gcl8wd07sq5r0000gn/T/gitstatus.POWERLEVEL9K.501.75557.1714782681.1.xtrace.log):
Daemon log (/private/var/folders/wh/wlh6mcwd5n12gcl8wd07sq5r0000gn/T/gitstatus.POWERLEVEL9K.501.75557.1714782681.1.daemon.log):
System information:
If you need help, open an issue and attach this whole error message to it: