fish shell - config.fish - environment variable

~/.config/fish/config.fish

function fish_prompt
    powerline-shell --shell bare $status
end

set -x JAVA_HOME /home/g/workspace/apps/jdk1.8.0_251
# 按照bash风格用:来分割多个值,但在fish中PATH不能用:来分割,必须用空格分割
set -x CLASSPATH .:{$JAVA_HOME}/lib/tools.jar:{$JAVA_HOME}/dt.jar
set -x PATH {$JAVA_HOME}/bin {$PATH}
set -x MAVEN_HOME /home/g/workspace/apps/maven/apache-maven-3.6.3
set -x PATH {$MAVEN_HOME}/bin {$PATH}