答案 0 :(得分:1)
答案 1 :(得分:0)
我找到了 this
它说将 /Applications/IntelliJ\ IDEA.app/Contents/plugins/terminal/.zshrc 从其原始内容更改为:
function override_jb_variables {
for VARIABLE in $(env)
do
NAME=${VARIABLE%%=*}
if [[ $NAME = '_INTELLIJ_FORCE_SET_'* ]]
then
NEW_NAME=${NAME:20}
if [ -n "$NEW_NAME" ] && [ "$NEW_NAME" != "PATH" ]
then
VALUE=${VARIABLE#*=}
export "$NEW_NAME"="$VALUE"
fi
fi
done
}
override_jb_variables