8000 [BUG] Powerlevel10k 启动多个额外 zsh 进程(Ubuntu 20.04) · Issue #2867 · romkatv/powerlevel10k · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

[BUG] Powerlevel10k 启动多个额外 zsh 进程(Ubuntu 20.04) #2867

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
liusheng2020 opened this issue Jun 4, 2025 · 1 comment
Closed

Comments

@liusheng2020
Copy link

问题描述
在 Ubuntu 20.04 下,使用 Powerlevel10k 主题时,每打开一个 zsh 终端会额外启动 3 个 zsh 进程(共 4 个 zsh 进程),而使用默认 robbyrussell 主题时仅有 1 个 zsh 进程。

环境信息

  • 操作系统:Ubuntu 20.04
  • 终端:Gnome Terminal、Terminator、VSCode 集成终端均复现
  • Shell:zsh
  • Powerlevel10k 安装方式:oh-my-zsh 主题

复现步骤

  1. 设置 ZSH_THEME="robbyrussell",打开终端,执行:
    ps -u $USER -o pid,ppid,cmd | grep zsh
    pstree -p | grep zsh
    仅有 1 个 zsh 进程。
  2. 设置 ZSH_THEME="powerlevel10k/powerlevel10k",打开终端,执行同样命令,发现有 4 个 zsh 进程。

实际输出
(以下为用户实际输出,已脱敏)

  • robbyrussell 主题:
ps -u $USER -o pid,ppid,cmd | grep zsh
  37015   37005 /bin/zsh
  37073   37015 grep ... zsh
pstree -p | grep zsh
           |               |-terminator(37005)-+-zsh(37015)-+-grep(37082)
  • powerlevel10k 主题:
ps -u $USER -o pid,ppid,cmd | grep zsh
  36654   36646 /bin/zsh
  36690    1820 /bin/zsh
  36751    1820 /bin/zsh
  36753    1820 /bin/zsh
  36783   36654 grep ... zsh
pstree -p | grep zsh
           |               |-terminator(36646)-+-zsh(36654)-+-grep(36791)
           |               |-zsh(36690)---gitstatusd-linu(36754)-+-{gitstatusd-linu}(36755)
           |               |-zsh(36751)
           |               `-zsh(36753)

补充说明

  • 关闭终端后这些额外 zsh 进程会随之退出。
  • 仅切换主题即可复现,无需更改其他配置。
  • 希望开发者协助分析为何会有 3 个额外 zsh 进程(理论上应为 2 个:gitstatus + async worker)。

如需更多信息(如 ~/.zshrc、完整进程树、zsh 版本等),请告知,我会及时补充。

感谢!

@romkatv
Copy link
Owner
romkatv commented Jun 4, 2025

Dup of #2868

@romkatv romkatv closed this as completed Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0