【发布时间】:2025-08-01 17:55:02
【问题描述】:
我遇到的问题是我在 source ~/.profile 中创建的路径根本没有被使用。我通过执行echo $PATH 确认了我创建的路径——我在 .profile 中的所有自定义路径都会显示出来。
另外,我检查了 ~/.bash_profile 和 ~/.bash_login 并且两者都不存在(当我 sudo pico 时完全为空)。如果这很重要,我还确认我在 .zsh shell 中。
例如,我在 /.profile 中定义的路径之一中安装了 openssl 3.0。但是,当我 which openssl 它返回 usr/bin/openssl 时,这不是我的 .profile 中的路径。
想法?
【问题讨论】: