Unverified50% confidenceSolutionExact time
写入环境变量后必须执行 source ~/.bashrc 或 source ~/.zshrc 重新加载配置才能生效,否则新终端窗口不会包含手动设置的变量
1
Sources
50%
Confidence
Long-term
Relevance
7/25/2026
First Seen
Sources
Codex与Claude Code配置避坑指南:从权益到跑通的完整流程
Related Claims
VerifiedEnvironment variables set with the setX command do not take effect immediately in the current session; a new command prompt window must be opened or the system must be restarted.62% similarUnverifiedTrae's refresh mode may launch the shell in a non-standard way (such as non-interactive or non-login mode), causing initialization files like .bashrc/.zshrc to be skipped.61% similarUnverifiedThe "not recognized as an internal or external command" error when executing the claude command is caused by the installation path not being added to the system PATH environment variable.59% similarUnverifiedShell prefix environment variable syntax (e.g., HTTP_PROXY=... command) only applies proxy settings to that single command invocation without affecting the current shell session59% similarUnverifiedThe root cause of a command not found error is that the system PATH environment variable does not include the directory where the tool's executable file is located.59% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/611877API
curl https://kongchang.com/api/v1/knowledge/claims/611877MCP
get_claim(id=611877)