配置zsh

.zshrc

export ZSH="/root/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(git zsh-syntax-highlighting)

source $ZSH/oh-my-zsh.sh
#env
source /home/conf/.env

.env

# java
JAVA_HOME=/home/soft/jdk1.8.0_201
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME
export CLASSPATH
export PATH

# node
NODE_HOME=/home/soft/node-v10.15.1-linux-x64
PATH=$PATH:$NODE_HOME/bin
export PATH

# maven
M2_HOME=/home/soft/apache-maven-3.6.0
PATH=$PATH:$M2_HOME/bin
export M2_HOME
export PATH

posted @ 2019-03-01 21:52  灯塔下的守望者  阅读(387)  评论(0编辑  收藏  举报