romkatv / powerlevel10k

A Zsh theme
MIT License
46.69k stars 2.2k forks source link

Multiple -zsh processes from p10k #2780

Closed smartinellimarco closed 1 month ago

smartinellimarco commented 1 month ago

For each terminal tab opened, I am seeing multiple instances of the -zsh command:

❯ ps
  PID TTY           TIME CMD
85912 ttys000    0:00.21 -zsh
85924 ttys000    0:00.00 -zsh
85937 ttys000    0:00.00 -zsh
85938 ttys000    0:00.00 -zsh
85940 ttys000    0:00.02 /Users/marco/.cache/gitstatus/gitstatusd-darwin-arm64 -G v1.5.4 -s -1 -u -1 -d -1 -c -1 -m -1 -v FATAL -t 16

After digging around and bisecting my config, it looks like p10k is creating these extra processes.

I think this might be related to issue #2642, but I’m not sure if this is expected behavior or not.

romkatv commented 1 month ago

It's expected. See https://github.com/romkatv/powerlevel10k?tab=readme-ov-file#why-does-powerlevel10k-spawn-extra-processes.