Issue Description qodercli cannot use in ubuntu with zsh
Steps to Reproduce
Expected Behavior
Actual Behavior
Screenshots / Screen Recordings
Operating System
Current Qoder Version (Menu → About Qoder → Copy)
0.1.19 qoder cli version
感谢反馈 这个是支持的 我们本地复现下您的问题 有进展同步您 ![]()
谢谢大佬,在zsh的oh my zsh模式下呼不出qodercli命令,然后尝试再次在zsh上安装,即可发现报错,如果新的进展,麻烦在此帖告知一下
准确说是wsl2的Ubuntu24.04
问题原因:
安装时会检测用户的默认shell,用户的默认shell是 bash,因此安装时在~/.bashrc 文件里加入了执行路径。bash环境与zsh是隔离的,导致在使用zsh的时候不生效,zsh找不到qodercli。
解决方案:
执行以下命令把执行路径添加到zsh的配置中。
echo ‘export PATH=“$HOME/.local/bin:$PATH”’ >> ~/.zshrc
source ~/.zshrc
然后就可以直接使用 qodercli 了