我无法弄清楚 PATH 变量中的一些额外目录来自哪里。作为 shell,我使用 oh-my-zsh。在 .zshrc 中有以下几行:
export PATH="$PATH:$HOME/Documents/Development/flutter/bin"
export PATH="$PATH:$HOME/.rvm/bin"
export PATH=”${PATH}:/$ANDROID_HOME/tools:/$ANDROID_HOME/tools/bin:/$ANDROID_HOME/platform-tools”
export PATH="/usr/local/opt/gradle@6/bin:$PATH"
但是我的 PATH 变量中有一些额外的目录:
➜ ~ echo $PATH
/Users/kosh/.rvm/gems/ruby-3.0.2/bin:/Users/kosh/.rvm/gems/ruby-3.0.2@global/bin:/Users/kosh/.rvm/rubies/ruby-3.0.2/bin:/usr/local/opt/gradle@6/bin:”/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/kosh/Documents/Development/flutter/bin:/Users/kosh/.rvm/bin://tools://tools/bin://platform-tools”
这些目录在哪里
/Users/kosh/.rvm/gems/ruby-3.0.2/bin
/Users/kosh/.rvm/gems/ruby-3.0.2@global/bin
/Users/kosh/.rvm/rubies/ruby-3.0.2/bin
来自?