skywind3000 / skywind3000/z.lua

lua进程不关闭

Open
#197 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
3.1k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

我的环境是 win11 wsl2 ubuntu20.04.6LTS

eval "$(lua /path/to/z.lua --init bash)"

.bashrc的配置

但是每次我调用z之后,ps看进程就会多一个bash和lua,window进程看lua的cpu占用还挺高

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the report in WSL2 Ubuntu 20.04.6 using eval "$(lua /path/to/z.lua --init bash)" from .bashrc, then inspect the processes created after invoking z. Compare the process list before and after use; done means the extra bash and lua processes exit and no persistent high-CPU Lua process remains.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, lua
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.